Skip to content

InsertTreeViewNode

Claude edited this page Oct 26, 2026 · 5 revisions

InsertTreeViewNode

Command Index · BlitzPlus · Tree Views

InsertTreeViewNode index%, text$, parent_node%, icon%=-1  ; returns Int

Works in: BlitzPlus

Puts a node before the child with the given number of a parent.

Graphics 320, 240, 32, 2
win  = CreateWindow("Insert", 10, 10, 300, 200, Desktop(), 3)
tree = CreateTreeView(10, 10, 270, 140, win)
root = TreeViewRoot(tree)
AddTreeViewNode "First", root
AddTreeViewNode "Third", root
InsertTreeViewNode 1, "Second", root
Repeat
Until WaitEvent() = $803
Parameter Type Default Description
index Int required Where the node goes among the children, starting at 0.
text String required Text of the node.
parent_node Int required
icon Int -1 Number of an icon of the tree. Defaults to -1, which means none.

Returns: A handle for the new node.

Related commands

Command Index · BlitzPlus · Tree Views

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally