TTreeItem implements a linked-list tree node for custom tree widgets. Each node stores a prompt, level, bitmaps, action codeblock, and cargo data, and maintains prev/next/child pointers via an associated TTree object. TTVItem wraps a native Win32 TreeView item (HTREEITEM) for use with the standard Windows tree control, providing insert, expand, edit, check-box and persistence operations.
TTreeItem — Linked-List Tree Node
Key DATA Members
DATA
Type
Description
cPrompt
Character
Node display text
oTree
Object
Reference to the child TTree object (children), nil if leaf
TTreeItem is designed for a custom linked-list tree where each node can optionally hold a child TTree (via oTree). The linked list is doubly linked via oPrev/oNext.
TTVItem wraps a native Windows tree item handle and delegates all display/structure operations to the common control via SendMessage.
TTVItem Save() / Load() serialize the cPrompt, nImage, Cargo and lBold properties.
GetCheck() / SetCheck() require the tree to have the TVS_CHECKBOXES style.
The Value accessor/assign in TTreeItem delegates to a bSetGet codeblock, allowing the node to act as a SET/GET variable.