Class ListBox
Inheritance
WinControl | ListBox 🡄 WinControl 🡄 Control 🡄 Component 🡄 Object |
Properties
Canvas | The canvas object used to render on the object. |
ItemIndex | Get selected index. |
Items | Strings derived object containings all the items in the list. |
MultiSelect | When set to true you can select multiple items. |
Selected [] | Returns true if the given line is selected. |
Methods
clear () | |
clearSelection () | Deselects all items in the list. |
getCanvas () | |
getItemIndex () | |
getItems () | Returns a strings object. |
selectAll () | Selects all items in the list. |
setItemIndex ( index ) | |
setItems ( items ) | Sets a strings object to the listbox. |
Creation
createListBox ( owner ) | Creates a ListBox class object which belongs to the given owner. |
Inheritance
- WinControl
- ListBox 🡄 WinControl 🡄 Control 🡄 Component 🡄 Object
Properties
- Canvas
-
The canvas object used to render on the object.
Type:
- ItemIndex
-
Get selected index.
-1 is nothing selected.
Type:
integer - Items
-
Strings derived object containings all the items in the list.
Type:
- MultiSelect
-
When set to true you can select multiple items.
Type:
boolean - Selected []
-
Returns true if the given line is selected.
Use Items.Count-1 to find out the max index.
Type:
array
Methods
- clear ()
- clearSelection ()
- Deselects all items in the list.
- getCanvas ()
-
Returns:
- getItemIndex ()
-
Returns:
-
integer
- getItems ()
-
Returns a strings object.
Returns:
- selectAll ()
- Selects all items in the list.
- setItemIndex ( index )
-
Parameters:
- index integer
- setItems ( items )
-
Sets a strings object to the listbox.
Parameters:
- items Strings
Creation
- createListBox ( owner )
-
Creates a ListBox class object which belongs to the given owner.
Owner can be any object inherited from WinControl.
Parameters:
- owner WinControl
Returns: