From Appmethod Libraries
Jump to: navigation, search


Object Pascal

TComboBox = class(TCustomComboBox)


class PASCALIMPLEMENTATION TComboBox : public TCustomComboBox


Type Visibility Source Unit Parent
class public
FMX.ListBox FMX.ListBox


A TComboBox is a button with a list box attached to it.

Click the button to display the list. You can select an item from the list and it will appear as the button's text. You cannot type text directly into the combo box button.

To add items, right-click the combo box on the form and choose Add Item. This creates a new TListBoxItem object that appears in the Structure pane and can be edited individually. You can also manage the items in the combo box by double-clicking the combo box control in the Form Designer. This opens the Items Designer dialog where you can add, delete, and change the order of the items.

In Windows 8 style applications, you can create a Windows 8 style combobox by setting the value Native for the property DropDownKind. For more information, see Creating a Metropolis UI ComboBox.

See Also

Code Examples