Adding a Tree component (WinStudio Design Mode)
- Open a form and go into Design Mode.
- In the Toolbox, select the Tree component, and then draw the component on the form.
- Optionally, specify a text label for the root level of the tree using the Caption property in the Component property sheet.
- Optionally, to specify an icon other than the default folder icon for the root level, set the Bitmap File Name property in the Component property sheet.
- In the Component property sheet, expand the Data Source section, select Binding, and then click the ellipsis (...) button.
- In the Type field of the Edit Component Data Binding dialog box, select Tree.
- Click Edit.
-
In the
Tree Control Data Binding dialog box, at a
minimum, specify values for these fields:
- Top-Level IDO
- Properties
- Props To Display (Properties to display)
- Order By - Use one of the values from Props To Display.
Other fields are optional.
- Optionally, create sublevels, using the New button in the Specified Levels group box and the associated Tree Binding for Sublevel dialog box.
- Save the form definition.