DTree.GetSelectedItem

From GMod Wiki

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



Examples

DescriptionBasic Demonstration
Used onNewerClient.png
Code
local DTree= vgui.Create( "DTree" )
node = DTree:AddNode( "Test" )
DTree:SetSelectedItem(node)
 
print(DTree:GetSelectedItem())
OutputPanel Panel


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox