bgiCreateTreeView

Category: BGI GUI

Syntax:

bgiCreateTreeView:Int(x:Int, y:Int, width:Int, height:Int, parentWin:Int)


Parameters

Returns

Int



Summary

Creates a tree view for nested items, drawn with lines and open/close buttons.

Takes x (Int), y (Int), width (Int), height (Int) and parentWin (Int).

Returns gizmo ID on success, 0 if parent not found.

Only a double-click raises an event (or Enter): BGI_EVENT_COMMAND_CLICK with ID BGI_EVENT_ID_TREEVIEW, the node's ID as the data and its text as the extra (bgiGetEventExtra). A double-click also opens or closes a node that has children.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn