Blitz3D+ Command Reference

SelectTreeViewNode node

Parameters

node - tree view node to select

Description

Selects a tree view node, as if the user had clicked it.

Requires Extended language mode.

The node is highlighted and becomes the one SelectedTreeViewNode returns. Typical editor move: the user picks an entity in the 3D viewport, and you select the matching node in the hierarchy pane so both views agree.

Unlike most programmatic setters, this one behaves exactly like a click: when the selection actually changes, the tree view posts its usual $401 gadget-action event, so the same handler that reacts to user clicks also reacts to this call. Guard against loops if that handler itself selects nodes.

See it working in the tree and text area sample.

See also: SelectedTreeViewNode, ExpandTreeViewNode, TreeViewRoot, AddTreeViewNode.

Index