Progress
ADM 2 Reference


addNode (treeview.p)

Adds a node to the tree.

Parameters:

INPUT phBuffer AS HANDLE

Handle to buffer of temp-table tTreeData, used to defined the node. The temp-table includes the following fields: (as defined in TVController.i)

node_key
Unique key of node
parent_node_key
Key of either parent node or sibling node (depending on node_insert)
node_label
Label of node that appears in treeview
private_data
Information stored for the node in the node's TAG property
image
Relative path and filename of the image of the node
selected_image
Relative path and filename of the node when it is selected. If blank, it uses the same image as the image field.
node_insert
Specifies where to insert the node, relative to the parent:
0 - As first node at same level as the parent_node_key
1 - As last node at same level as the parent_node_key
2 - After (next) the parent_node_key
3 - Before (previous) the parent_node_key
4 - As child of parent_node_key
node_sort
If TRUE, sort node (This must be specified for all nodes within the same level). Default is FALSE.
node_expanded
If TRUE, expand node upon adding it to TreeView.
Default is FALSE.
node_checked
If TRUE, and property 'ShowCheckBoxes' is TRUE, the node appears checked. Default is FALSE

Returns: Nothing (procedure).

Notes: This procedure is called from populateTree, but can be called by itself.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095