Blitz3D+ Command Reference

CollapseTreeViewNode node

Parameters

node - tree view node to collapse

Description

Collapses a tree view node, hiding its children.

Requires Extended language mode.

Folds a node shut so its child nodes disappear from view - the opposite of ExpandTreeViewNode. Nothing is deleted: the children keep their handles, CountTreeViewNodes still counts them, and expanding the node brings them straight back.

Use it to keep a big scene hierarchy readable, for example folding every top-level branch except the one holding the object the user just selected. To actually remove a branch, use FreeTreeViewNode instead.

The world editor shell sample shows the scene hierarchy pattern this belongs to.

See also: ExpandTreeViewNode, AddTreeViewNode, CountTreeViewNodes, SelectTreeViewNode, FreeTreeViewNode.

Index