From Appmethod Libraries
Jump to: navigation, search


Object Pascal

TListBox = class(TCustomListBox)


class PASCALIMPLEMENTATION TListBox : public TCustomListBox


Type Visibility Source Unit Parent
class public
FMX.ListBox FMX.ListBox
TListBox Shown on iOS Platform


A TListBox displays a set of items in a scrollable list.

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.

With the TListBox you can:

  • Set the list to accept single-item selection or multi-item selection using the MultiSelect property.
  • Attach check boxes to the list items by using the ShowCheckboxes property.
  • Set different backgrounds for consecutive list items by using the AlternatingRowBackground.

See Also

Code Examples and Samples