Skip to content

AddTreeViewNode

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

AddTreeViewNode

AddTreeViewNode:Int32 text:String, parent_node:Int32, icon:Int32=-1
Parameter Mode Type Default Description
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

Adds a node at the end of the children of another node. To add one at the top level, give TreeViewRoot as the parent.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Files", 10, 10, 300, 200, Desktop(), 3)
tree = CreateTreeView(10, 10, 270, 140, win)
root = TreeViewRoot(tree)
docs = AddTreeViewNode("Documents", root)
AddTreeViewNode "Letter.txt", docs
AddTreeViewNode "Notes.txt", docs
AddTreeViewNode "Pictures", root
ExpandTreeViewNode docs
Repeat
Until WaitEvent() = $803

Media

AddTreeViewNode

Related Commands

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

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally