Progress
ADM 2 Reference
populateTree (treeview.p)
Controls the population of the TreeView. Creates the node given in the argument and all its descendents.
Parameters:INPUT phTable AS HANDLE
The handle of the temp-table containing the data (defined in tvcontroller.i)
INPUT pcStartNodeKey AS CHARACTER
The highest-level node
Returns: Nothing (procedure).Notes:
- This routine is called recursively to descend the tree pointed to by phTable.
- The temp-table tTreeData 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, no special image is used.
- node_insert — Specifies where to insert the node, relative to the parent node:
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 — TRUE if the node is to be shown sorted within its sibling group. All of this node’s siblings must have this option set for sorting to be complete. Default is FALSE.
- node_expanded — TRUE if the node is to be expanded upon adding it to treeview. Default is FALSE.
- node_checked — TRUE if the node is to be shown checked. Default is FALSE. (The property ‘ShowCheckBoxes’ must be set TRUE to enable this option).
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |