[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Selects the list item with the specified text.
Source position: stdctrls.pp line 390
protected function TCustomComboBox.SelectItem( |
const AnItem: string |
):Boolean; |
AnItem |
|
The text to find in Items. |
True when a matching item was found and selected.
SelectItem is a Boolean function used to select the list item in the control with the value specified in AnItem. The return value is True when the Items property contains an entry with the value in AnItem.
The value in ItemIndex is updated with the ordinal position in Items for the specified value, or -1 when AnItem does not exist in Items. When the value in ItemIndex is changed, the Click and Select methods are called to refresh the control display and to signal the OnClick and OnSelect event handlers.
|
The list of items displayed in the combo-box control. |
|
|
The index of the currently selected item, or -1 if none is selected. |
|
|
Signals the OnSelect event handler when ItemIndex is changed. |
|
|
Handler invoked when an item is selected. |
|
|
Signals OnClick and/or executes the ActionLink when the control has been clicked. |
|
|
Notification handler for mouse clicks. |
Version 3.2 | Generated 2024-02-25 | Home |