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

From Lavish Software Wiki
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 ISUI 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
 
* [[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 ==
[[ISSession:isuielement (Data Type)|isuielement]]
+
[[LavishGUI:lguilistbox (Data Type)|lguilistbox]]
  
 
== Returns ==
 
== Returns ==
Same as '''isuielement.Name'''
+
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]]
  
{{DT-Stub}}
+
[[Category:LavishGUI]]
[[Category:Inner Space]]
 
[[Category:Inner Space Session]]
 
[[Category:Inner Space Session Data Types]]
 

Latest revision as of 00:41, 17 October 2008

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