Creates a new TreeView object can also be called as PARENT->AddTreeView(%OPTIONS).
Change most of the options used when the item was created (see InsertItem()). Allowed %OPTIONS
are:
-bold -image -selected -selectedimage -text
Deletes all nodes from the TreeView if no argument is given; otherwise,
delete all nodes under the given NODE.
Closes a NODE of the TreeView.
Returns the number of nodes in the TreeView.
Removes the specified NODE from the TreeView.
Ensures that the specified NODE is visible in the TreeView.
Opens a NODE of the TreeView; the optional FLAG parameter can indicate
different operations:
Gets or sets the first visible NODE in the TreeView; if a NODE is given, it
is selected and, if possible, it becomes the first visible one; the return
value is the handle of the previously first visible. If no NODE is given,
returns the handle of the current first visible one.
Returns the handle of the first child node for the given NODE.
See ItemInfo().
Returns the handle of the next sibling node for the given NODE.
Returns the handle of the next visible node for the given NODE.
Returns the handle of the parent node for the given NODE.
Returns the handle of the previous sibling node for the given NODE.
Returns the handle of the previous visible node for the given NODE.
Returns the handle of the TreeView root node.
Checks if the specified point in the TreeView area is occupied by a node;
it returns the handle to the found node or zero if none was found. If
called in an array context, it returns an additional value containing more
info about the position of the specified point.
Gets or sets the indentation width, in pixels, between parents and child
nodes; if the VALUE is less than the system-defined minimum, it is set to
the system-defined minimum.
Inserts a new node in the TreeView. Allowed
Gets or sets the check state of the given NODE (valid only if the control
was created with the -checkboxes => 1 option).
Returns an associative array of information about the given NODE:
Deletes all nodes from the TreeView.
Selects the given NODE in the TreeView; the optional FLAG parameter can be
set to 5 if you want the selected NODE to become, if possible, the first
visible item in the TreeView. If NODE is 0 (zero), the selected item, if
any, is deselected.
Returns the handle of the currently selected node.
[TBD]
Sorts the childs of the specified NODE in the TreeView.
Returns the number of items that can be fully visible in the TreeView.
1 expand (this is the default)
2 collapse
3 toggle (expand if it was collapsed and collapse if it was expanded)
%OPTIONS
are:
-bold => 0/1, default 0
-image => NUMBER
index of an image from the associated ImageList
-item => NUMBER
handle of the node after which the new node is to be inserted,
or one of the following special values:
0xFFFF0001: at the beginning of the list
0xFFFF0002: at the end of the list
0xFFFF0003: in alphabetical order
the default value is at the end of the list
-parent => NUMBER
handle of the parent node for the new node
-selected => 0/1, default 0
-selectedimage => NUMBER
index of an image from the associated ImageList
-text => STRING
the text for the node
-children
-image
-parent
-selectedimage
-state
-text
Sent when the user closes the specified NODE of the TreeView.
Sent when the user is about to close the specified NODE of the TreeView.
The event should return 0 to prevent the action, 1 to allow it.
Sent when the user opens the specified NODE of the TreeView.
Sent when the user is about to open the specified NODE of the TreeView The
event should return 0 to prevent the action, 1 to allow it.
Sent when the user presses a key while the TreeView control has focus; KEY
is the ASCII code of the key being pressed.
Sent when the user clicks on the specified NODE of the TreeView.