- Add a tree widget to your interface, right-click on the widget, and choose Edit Tree. A new tree widget is created, beginning with the root node of the tree.
- Click Insert to add a node to the tree. Nodes are added as leaf nodes below whichever node is currently selected. Inserting a node below an existing leaf node turns the existing leaf node into a branch node (that is, a folder). You can also turn a leaf node into a branch node by selecting the node and clicking the Folder checkbox.
- Modify the Caption and Name fields for each node as desired. The value of the Caption field will be come the VALUE of the tree widget; this string is used as the text label when the widget is displayed. The value of the Name field will become the variable name of the variable that holds the tree widget's widget ID.
- To delete a node from the hierarchy, select the node and click Delete. Any nodes or that have the selected node as their parent will also be deleted.
- Expand and collapse nodes within the editor by clicking on the plus and minus symbols to the left of the branch nodes.
- Rearrange the nodes and branches as desired by dragging and dropping the nodes' captions or icons.
- Click OK to save your changes to the tree widget hierarchy, or Cancel to abandon your changes.