SDL ComboBox

TSDLDropList

This is class for ComboBox's drop list. It is a descendant of TSDLScrollComponent. It has only two new properties but you will access them through TSDLComboBox.

TSDLComboBox

TSDLComboBox combines an edit box with a scrollable list. It is a descendant of TSDLStdControl. Properties are:

property Text: string read GetText write SetText;
Specifies the text string that is displayed in the combo box.
property DroppedDown: Boolean read FDroppedDown write SetDroppedDown;
Indicates whether the drop-down list is currently displayed.
property Items: TStringList read FItems write SetItems;
Lists the items (strings) in the list portion of the combo box.
property ItemIndex: Integer read FItemIndex write SetItemIndex default -1;
Indicates which item in the drop-down list is selected.
property DropDownColor: Cardinal read GetDDColor write SetDDColor;
Color of the DropDown list.
property SelColor: Cardinal read GetSelColor write SetSelColor;
Color of selected item in DropDown list.
property DropDownCount: Byte read FDropDownCount write SetDDCount;
Specifies the maximum number of items displayed in the drop-down list.
property OnChange: TSDLNotifyEvent read FOnChange write FOnChange;
Occurs when the text changes.
property OnDrawItem: TSDLDrawItemEvent read FOnDrawItem write FOnDrawItem;
Occurs when an item in a combo box needs to be drawn.