Sign in Join
FPDoc Onlineexperiment

TCustomComboBox.OnSelect property

Member of TCustomComboBoxprotectedIn unit StdCtrls

Handler invoked when an item is selected.

Declaration

pascal
property OnSelect: TNotifyEvent read FOnSelect write FOnSelect;

Description

OnSelect is a TNotifyEvent property with the event handler signalled when an item is selected in the list box for the control.

OnSelect is signalled (when assigned) from the Select method when ItemIndex contains a positive non-zero value. Select (and subsequently OnSelect) are called from multiple methods in TCustomComboBox. SelectItem calls Select when the value in ItemIndex is changed as a result of assigning a value to Text. KeyUp calls Select when the value in Text is updated by auto-completion features in the control. Select is also called when the LM_SelChange message is handled for the control.

Implement and assign an object procedure to the handler to respond to the event notification.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.