LavishGUI:lguicombobox (Data Type)

From Lavish Software Wiki
Jump to: navigation, 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
  • lguitexture Texture: Texture used for the text display area of the combo box
  • lguitexture ButtonTexture: Texture used for the button area of the combo box

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