LavishGUI:lguitree (Data Type)
Jump to navigation
Jump to search
Contents
Description
lguitree | |
Defined By | LavishGUI |
Inherits | lguiframe |
Reduces To | same as lguielement.Name |
Variable Object Type | none |
Uses Sub-Types | no |
C/C++ Type | LGUITree* |
Members
- lguifont Font: Font used to display node text
- lguitreenode Root: The root node of the tree (never displayed, cannot be deleted, etc)
- lguitreenode Selection: The currently selected node
- lguitreenode GetNode[handle]: Retrieves a node by handle (see lguitreenode.Handle)
- lguitreenode GetNode[query]: Retrieves a node by query
- lguitexture Image: The default image displayed for a non-collapsible item
- lguitexture ImageCollapsible: The default image displayed for a collapsible item
- lguitexture ImageCollapsed: The default image displayed for a collapsed item
Methods
none
Examples
<Tree Name="my tree">
</Height>100</Height> <Width>200</Width> <Border>1</Border> <BorderColor>FFFFFFFF</BorderColor> <BackgroundColor>FF000000</BackgroundColor> <SelectionBackgroundColor>FF000066</SelectionBackgroundColor> <SelectionTextColor>FFFFFFFF</SelectionTextColor> <ImageSize>12</ImageSize> <ItemHeight>14</ItemHeight> <ImageBorder>2</ImageBorder> <TextMargin>5</TextMargin> <IndentPerDepth>21</IndentPerDepth> <ScrollBar template='tree.scrollbar' /> <ImageTexture template='checkbox.Texture' /> <ImageTextureCollapsible template='checkbox.TextureChecked' /> <ImageTextureCollapsed template='checkbox.TextureHover' /> <OnLoad><![CDATA[ variable int MyParent MyParent:Set[${This.Root.AddChild["Something in red",ffff0000]}] This.GetNode[${MyParent}]:SetMetadata["author","lax"]:AddChild["Something in the color specified by Font"] This.GetNode[${MyParent}].Children:Select This.Root:AddChild["Something else"]
]]></OnLoad> </Tree>
See Also
- tree LavishGUI element type
- lguitreenode LavishScript data type
- LavishGUI
- LavishScript Data Types
- LavishGUI:Data_Types