ListBox
Ye old list box
Derived from IControl
Functions
UseVar(VarNameSpecification name)
Optional(none)
name : Name of the var that will contain the selected item name
UseSlider(ControlNameSpecification name)
Optional(none)
name : Name of a list slider to use with this control
ItemConfig()
Optional(none)
The body of this scope is applied to each item in the list
CellSize(integer x, integer y)
Optional(0, 0)
Manually set the size of each list cell
AddTextItem(string name, string key)
Multiple, name Required, key Optional(name)
name : The list item name
key : The multilanguage display key, or temporary text
SetSelected(integer index)
Optional(0)
index : The index of the list item to set as selected
SetSelected(string name)
Optional(none)
name : The name of the list item to set as selected
Style Attributes
VSlider - Add a vertical slider to the list
NoSelection - Do not allow selection of items
MultiSelect - Allow multiple selection of objects
CanClear - Allow the selection to be cleared
AutoScroll - Automatically scroll when new items added
Geometry Attributes
None
Events
ListBox::SelChange - The selection has changed
ListBox::SelClear - The selection has been cleared
ListBox::DblClick - A double click occurred on the selected item