Skip to content

CollapseTreeViewNode

Claude edited this page Oct 26, 2026 · 5 revisions

CollapseTreeViewNode

Command Index · BlitzPlus · Tree Views

CollapseTreeViewNode node%

Works in: BlitzPlus

Folds a node so its children are hidden. They keep existing, and ExpandTreeViewNode shows them again. A node deep in the tree is only seen when everything above it is open.

Graphics 320, 240, 32, 2
win  = CreateWindow("Fold", 10, 10, 300, 200, Desktop(), 3)
tree = CreateTreeView(10, 10, 270, 140, win)
a = AddTreeViewNode("Branch", TreeViewRoot(tree))
AddTreeViewNode "Leaf", a
ExpandTreeViewNode a
CollapseTreeViewNode a
Repeat
Until WaitEvent() = $803
Parameter Type Default Description
node Int required Handle of a node.

Related commands

Command Index · BlitzPlus · Tree Views

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally