[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomListBox.OnSelectionChange

Handler invoked when an item is selected in the control.

Declaration

Source position: stdctrls.pp line 667

public property TCustomListBox.OnSelectionChange : TSelectionChangeEvent
  read FOnSelectionChange
  write FOnSelectionChange;

Description

OnSelectionChange is a TSelectionChangeEvent property with the event handler signalled when a selection is changed in the list box control. OnSelectionChange is signalled (when assigned) from the DoSelectionChange method, and occurs prior to calling the Click method for the control.

The User argument indicates whether the selection change results from user interaction with the control (True), or from code or methods called at run-time (False).

See also

TCustomListBox.DoSelectionChange

  

Signals the OnSelectionChange handler.

TCustomListBox.Click

  

Performs the Changed method when the control is clicked.

TCustomListBox.ClickOnSelChange

  

Allows selection changes to generate a Click event.

TCustomListBox.SelectRange

  

Changes the selection state for a range of Items in the control.

TCustomListBox.MultiSelect

  

Allows selection of more than one item from the list.


Version 3.2 Generated 2024-02-25 Home