Difference between revisions of "LavishGUI:lguicombobox (Data Type)"
Jump to navigation
Jump to search
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | This data type provides and controls data for | + | 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 | ||
* [[DataType:bool|bool]] '''Down''' : TRUE if combobox is pressed | * [[DataType:bool|bool]] '''Down''' : TRUE if combobox is pressed | ||
* [[DataType:int|int]] '''Selection''' : ID # of selected item in combobox | * [[DataType:int|int]] '''Selection''' : ID # of selected item in combobox | ||
+ | * [[LavishGUI:lguitexture (Data Type)|lguitexture]] '''Texture''': Texture used for the text display area of the combo box | ||
+ | * [[LavishGUI:lguitexture (Data Type)|lguitexture]] '''ButtonTexture''': Texture used for the button area of the combo box | ||
== Methods == | == Methods == | ||
Line 10: | Line 12: | ||
== Inherits == | == Inherits == | ||
− | [[ | + | [[LavishGUI:lguilistbox (Data Type)|lguilistbox]] |
== Returns == | == Returns == | ||
− | Same as ''' | + | Same as '''lguielement.Name''' |
== Examples == | == Examples == | ||
===Display which item in the combobox is selected=== | ===Display which item in the combobox is selected=== | ||
Line 25: | Line 27: | ||
== See Also == | == See Also == | ||
+ | * [[LavishGUI]] | ||
+ | * [[LavishGUI:combobox_%28Element_Type%29|combobox (Element Type)]] | ||
* [[LavishScript:Data Types|LavishScript Data Types]] | * [[LavishScript:Data Types|LavishScript Data Types]] | ||
* [[IS:Session#Data_Types|Inner Space Session Data Types]] | * [[IS:Session#Data_Types|Inner Space Session Data Types]] | ||
− | + | [[Category:LavishGUI]] | |
− | [[Category: | ||
− | |||
− |
Latest revision as of 00:41, 17 October 2008
Contents
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
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