Description | Hierarchy | Fields | Methods | Properties |
type TGUIComboBox = class(TGUIElement)
A GUI combo box.
![]() |
function AddItem(const Text: StringType; Data: LongWord=0): LongWord; inline; |
![]() |
function GetIndexForItemData(Data: LongWord): LongInt; inline; |
![]() |
function GetItemData(Index: LongWord): LongWord; inline; |
![]() |
function GetItemText(Index: LongWord): StringType; inline; |
![]() |
procedure Clear; inline; |
![]() |
procedure RemoveItem(Index: LongWord); inline; |
![]() |
procedure SetTextAlignment(Horizontal, Vertical: TGUIAlignment); inline; |
![]() |
property ItemCount: LongWord read GetItemCount; |
![]() |
property SelectedItem: LongInt read GetSelected write SetSelected; |
![]() |
function AddItem(const Text: StringType; Data: LongWord=0): LongWord; inline; |
Adds an item and returns its the index. |
![]() |
function GetIndexForItemData(Data: LongWord): LongInt; inline; |
Returns index based on item data. |
![]() |
function GetItemData(Index: LongWord): LongWord; inline; |
Returns item data of an item. the idx may be a value from 0 to itemCount-1. |
![]() |
function GetItemText(Index: LongWord): StringType; inline; |
Returns string of an item. the idx may be a value from 0 to ItemCount-1. |
![]() |
procedure Clear; inline; |
Deletes all items in the combo box. |
![]() |
procedure RemoveItem(Index: LongWord); inline; |
Removes an item from the combo box. |
![]() |
procedure SetTextAlignment(Horizontal, Vertical: TGUIAlignment); inline; |
Sets text justification of the text area. Parameters |
![]() |
property ItemCount: LongWord read GetItemCount; |
Returns the amount of items in box. |
![]() |
property SelectedItem: LongInt read GetSelected write SetSelected; |
The index of the currently selected item. -1 if no item is selected. |