Skip to content

AddTreeViewNode

Narta Xaymar Dirks edited this page Nov 25, 2026 · 8 revisions

AddTreeViewNode BlitzPlus

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 The node it goes into.
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 BlitzPlus, ExpandTreeViewNode BlitzPlus, FreeTreeViewNode BlitzPlus, InsertTreeViewNode BlitzPlus, ModifyTreeViewNode BlitzPlus, SelectedTreeViewNode BlitzPlus, SelectTreeViewNode BlitzPlus, TreeViewNodeText BlitzPlus

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally