LavishGUI:lguicombobox (Data Type)

From Lavish Software Wiki
Revision as of 22:39, 15 December 2005 by Beefalo (talk | contribs)
Jump to navigation Jump to search

Description

This data type provides and controls data for combobox (Element Type).

Members

  • isuifont Font : font object the combobox is using
  • bool Down : TRUE if combobox is pressed
  • int Selection : ID # of selected item in combobox

Methods

  • SetSelection[#] : sets which item in combobox is selected by ID <#>

Inherits

lguilistbox

Returns

Same as lguielement.Name

Examples

Display which item in the combobox is selected

  • echo ID selected: ${UIElement[test].FindChild[test].Selection}
Output
ID selected: 3

Select a specific item in combobox

  • UIElement[test].FindChild[test]:SetSelection[2]
This command selects ID # 2 in combobox


See Also