Difference between revisions of "LavishGUI:lguicombobox (Data Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Description ==
 
== Description ==
This data type provides and controls data for LGUI comboboxes.
+
This data type provides and controls data for [[LavishGUI:combobox_%28Element_Type%29|combobox (Element Type)]].
 
== Members ==
 
== Members ==
 
* [[ISSession:isuifont (Data Type)|isuifont]] '''Font''' : font object the combobox is using
 
* [[ISSession:isuifont (Data Type)|isuifont]] '''Font''' : font object the combobox is using

Revision as of 22:39, 15 December 2005

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