DTree.SetSelectedItem
From GMod Wiki
Function | |
Syntax | DTree:SetSelectedItem( Panel Panel ) |
Description: | |
Sets selected item on a panel. | |
Returns: | nil |
In Object: | DTree |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DTree.SetSelectedItem]DTree.SetSelectedItem [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Sets selected item "node" on a DTree |
---|---|
Used on | |
Code | local DTree= vgui.Create("DTree") node = ctrl:AddNode( "Test" ) DTree:SetSelectedItem(node) |
Output | N/A |