Skip to main content
A newer version of this page is available. .

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.

Example

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:

See Also