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:

    Canvas
getItemIndex ()

Returns:

    integer
getItems ()
Returns a strings object.

Returns:

    Strings
selectAll ()
Selects all items in the list.
setItemIndex ( index )

Parameters:

  • index integer
setItems ( items )
Sets a strings object to the listbox.

Parameters:

Creation

createListBox ( owner )
Creates a ListBox class object which belongs to the given owner. Owner can be any object inherited from WinControl.

Parameters:

Returns:

    ListBox
generated by LDoc 1.4.6-antum-dev-1 Last updated 2019-02-27 23:30:35