Skip to content

InsertTreeViewNode

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

InsertTreeViewNode

InsertTreeViewNode:Int32 index:Int32, text:String, parent_node:Int32, icon:Int32=-1
Parameter Mode Type Default Description
index In Int32 required Where the node goes among the children, starting at 0.
text In String required Text of the node.
parent_node In Int32 required
icon In Int32 -1 Number of an icon of the tree. Defaults to -1, which means none.

Returns: A handle for the new node.

Description

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

Examples

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

Related Commands

AddTreeViewNode, CollapseTreeViewNode, ExpandTreeViewNode, FreeTreeViewNode, ModifyTreeViewNode, SelectedTreeViewNode, SelectTreeViewNode, TreeViewNodeText

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally