Creates a tree view control for hierarchical data.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
BGI GUI
Parameters & Returns
Parameters
xInt
yInt
widthInt
heightInt
parentWinInt
Returns
Int
Quick Summary
Creates a tree view control for hierarchical data.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
Technical Exegesis...
Creates a tree view control for displaying hierarchical data with expandable/collapsible nodes. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using WC_TREEVIEW class with WS_CHILD | WS_VISIBLE | WS_BORDER | TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT style (connecting lines, expand/collapse buttons, lines at root level). Sets GUI font. Creates CGizmo with GIZMO_TREEVIEW type, stores position, dimensions, state (visible=true, enabled=true).
Creates a tree view control for displaying hierarchical data with expandable/collapsible nodes. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using WC_TREEVIEW class with WS_CHILD | WS_VISIBLE | WS_BORDER | TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT style (connecting lines, expand/collapse buttons, lines at root level). Sets GUI font. Creates CGizmo with GIZMO_TREEVIEW type, stores position, dimensions, state (visible=true, enabled=true). Returns gizmo ID on success, 0 if parent not found.
Tree views display hierarchical data structures (folders, categories, organization charts). Use bgiAttachGizmoRootNode to add top-level nodes. Use bgiAppendGizmoChildNode to add child nodes. Nodes can be expanded (show children) or collapsed (hide children). Use bgiSelectedGizmoNode to get selected node. Generates BGI_EVENT_COMMAND_UPDATE when selection changes (TVN_SELCHANGED). Common for file explorers, category browsers, or any tree-structured data.