TSDLListBox

TSDLListBox displays a scrollable list of items that users can select. It is a descendant of TSDLScrollControl. Properties are:

Selected : array of Boolean;
Indicates whether a particular item is selected.
property ItemIndex: Integer read FItemIndex write SetItemIndex;
Specifies the ordinal number of the selected item in the list box’s item list.
property TopIndex: Integer read GetTopIndex write SetTopIndex;
Specifies the index number of the item that appears at the top of the list box.
property Items: TStringList read FItems write SetItems;
Contains the strings that appear in the list box.
property MultiSelect: Boolean read FMultiSelect write SetMultiSelect default False;
Determines whether the user can select more than one element at a time.
property SelColor: Cardinal read FSelColor write FSelColor;
Background color of selected item.
property OnDrawItem: TSDLDrawItemEvent read FOnDrawItem write FOnDrawItem;
Occurs when an item in a list box needs to be drawn.

There is one new method:

function ItemHeight: Integer;
Returns the height in pixels of an item in a list box.