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

TCustomComboBox.Select

Signals the OnSelect event handler when ItemIndex is changed.

Declaration

Source position: stdctrls.pp line 358

protected procedure TCustomComboBox.Select; virtual;

Description

Select is a procedure called when the item selection in the drop-down list for the control has changed. This can happen when text is entered and auto-completion is enabled, or when a new value is selected from the drop-down list.

Select signals the OnSelect event handler (when assigned). For Delphi compatibility, the event handler is not signalled when ItemIndex contains -1 (Text is not located in the Items for the control).

See also

TCustomComboBox.OnSelect

  

Handler invoked when an item is selected.

TCustomComboBox.Items

  

The list of items displayed in the combo-box control.

TCustomComboBox.ItemIndex

  

The index of the currently selected item, or -1 if none is selected.

TCustomComboBox.AutoComplete

  

Positions the list box using partial text matching.

TCustomComboBox.AutoCompleteText

  

Options for the behavior of the Auto-Complete feature.

TCustomComboBox.Text

  

The value in the edit box for the control.

TCustomComboBox.SelText

  

The selected text in the edit box for the control.

TCustomComboBox.SelStart

  

zero-based index to the UTF-8 character at the beginning of the selected text in the edit box.

TCustomComboBox.SelLength

  

The number of selected UTF-8 characters in the edit box.


Version 3.2 Generated 2024-02-25 Home