DTree.SetSelectedItem

From GMod Wiki

Jump to: navigation, search
Function
Syntax DTree:SetSelectedItem( Panel Panel )
Description:
Sets selected item on a panel.
Returns: nil
In Object: DTree
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DTree.SetSelectedItem]DTree.SetSelectedItem [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets selected item "node" on a DTree
Used onNewerClient.png
Code
local DTree= vgui.Create("DTree")
node = ctrl:AddNode( "Test" )
DTree:SetSelectedItem(node)
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox