Description | Hierarchy | Fields | Methods | Properties |
type unaWinCombobox = class(unaWinWindow)
Combobox window.
constructor create(parent: unaWinWindow; x: int = 2; y: int = 2; w: int = 80; h: int = 120; style: unsigned = CBS_DROPDOWNLIST or WS_CHILD or WS_TABSTOP or WS_VSCROLL or WS_VISIBLE); overload; |
|
function add(const str: string): unaWinCombobox; |
|
function findString(const str: string): int; |
property count: unsigned read getCount; |
|
property itemIndex: int read getItemIndex write setItemIndex; |
constructor create(parent: unaWinWindow; x: int = 2; y: int = 2; w: int = 80; h: int = 120; style: unsigned = CBS_DROPDOWNLIST or WS_CHILD or WS_TABSTOP or WS_VSCROLL or WS_VISIBLE); overload; |
|
Creates Windows COMBOBOX window with CBS_DROPDOWNLIST style set by default. |
function add(const str: string): unaWinCombobox; |
|
Adds a string to combobox list. |
function findString(const str: string): int; |
|
Returns string index in combobox list, or -1 if string was not found. |
property count: unsigned read getCount; |
|
Returns number of items (strings) in combobox list. |
property itemIndex: int read getItemIndex write setItemIndex; |
|
Returns current selected item (string) index, or -1 if no item is selected. |
(c) 2012 Lake of Soft