TcxComboBox Class
A combo box.
Declaration
TcxComboBox = class(
TcxCustomComboBox
)
Remarks
The combo box combines the functionality of a single-line text editor and a drop-down menu. The drop-down menu displays a list of text strings stored in the Properties.Items property. If text in the text edit box matches starting characters of the drop-down menu’s string, the combo box allows a user to complete the text to this string.
You can prohibit a user from entering text. Set the DropDownListStyle property to lsFixedList to disable the text edit box and leave only the drop-down menu.
A user can perform one of the following actions to open or close the drop-down menu:
Click the drop-down button.
Focus the combo box and press the Alt+Up Arrow or Alt+Down Arrow key combination.
Focus the combo box and press the F4 key.
The Up and Down arrow keys allow a user to switch between combo box items, even if the drop-down menu is closed. The Ctrl+PageUp and Ctrl+PageDown keystrokes select the first and last items, respectively.
The TcxComboBox class members allow you to do the following:
Access combo box appearance and behavior settings (Properties and ActiveProperties).
Specify the selected item (ItemIndex).
Manage the edit value (EditingValue, EditValue, EditingText, EditText, Clear, and ResetEditValue).
Access the drop-down menu (PopupWindow).
Open or close the drop-down menu (DroppedDown and CloseUp).
Obtain if the drop-down menu can be opened (CanDropDown).
Specify a text hint for the combo box with an unassigned edit value (TextHint).
Manage text selection (SelStart, SelLength, SelText, SetSelection, SelectAll, and ClearSelection).
Play the default system sound when a user confirms the entry (BeepOnEnter).
Discard user changes (Undo).
Specify style settings for the combo box in different states (Style, StyleDisabled, StyleFocused, StyleHot, and Styles).
Set a repository item (RepositoryItem).