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

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 15: Line 15:
 
* [[DataType:bool|bool]] '''Focus''': True of the element has keyboard focus
 
* [[DataType:bool|bool]] '''Focus''': True of the element has keyboard focus
 
* [[DataType:string|string]] '''Type''': Element type (such as "button")
 
* [[DataType:string|string]] '''Type''': Element type (such as "button")
* [[DataType:isuielement|isuielement]] '''Parent''': Parent element
+
* ... '''Parent''': Parent element
* [[DataType:isuielement|isuielement]] '''Children''': First child element (bottom of Z order)
+
* ... '''Children''': First child element (bottom of Z order)
* [[DataType:isuielement|isuielement]] '''Next''': Next element
+
* ... '''Next''': Next element
* [[DataType:isuielement|isuielement]] '''Previous''': Previous element
+
* ... '''Previous''': Previous element
* [[DataType:isuielement|isuielement]] '''FindChild['''name''']''': Finds a direct child of this element with the given name
+
* ... '''FindChild['''name''']''': Finds a direct child of this element with the given name
* [[DataType:isuielement|isuielement]] '''FindUsableChild['''name''','''type''']''': Finds a descendant of this element with the given name and element type
+
* ... FindUsableChild['''name''','''type''']''': Finds a descendant of this element with the given name and element type
* '''GetType['''ui element type''']''': Grabs this element as the given UI element type, if possible
 
  
 
== Methods ==
 
== Methods ==

Revision as of 00:54, 31 July 2005

Description

Members

  • string Name: Name of the element
  • int ID: Unique ID number of the element
  • int X: X position relative to its parent
  • int Y: Y position relative to its parent
  • int AbsoluteX: X position relative to the display
  • int AbsoluteY: Y position relative to the display
  • int Width: Width of the element
  • int Height: Height of the element
  • bool Visible: True if the element is visible
  • bool AlwaysOnTop: True if the element is "always on top"
  • bool MouseOver: True if the element has mouse focus
  • bool Focus: True of the element has keyboard focus
  • string Type: Element type (such as "button")
  • ... Parent: Parent element
  • ... Children: First child element (bottom of Z order)
  • ... Next: Next element
  • ... Previous: Previous element
  • ... FindChild[name]: Finds a direct child of this element with the given name
  • ... FindUsableChild[name,type]: Finds a descendant of this element with the given name and element type

Methods

  • LeftClick
  • LeftMouseDown
  • LeftMouseUp
  • RightClick
  • RightMouseDown
  • RightMouseUp
  • SetX[#]
  • SetY[#]
  • SetWidth[#]
  • SetHeight[#]
  • SetFocus
  • SetZOrder[how]
  • Show
  • Hide
  • ToggleVisible

Returns

Same as Name

Examples

See Also