WinStudio
Adding a Tree Component
To add a tree component:
- Open a form and enter Design Mode.
- In the Toolbox, click Tree, and then draw the component
on the form.
- (Optional) Specify a text label for the root level of the tree
using the Caption property
in the Component
property sheet.
- (Optional) 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 box 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 (Properties)
- Filter
- Order By
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.
Related Topics
About Tree Components
TreeGetCurItemLevelProperty
Method
TreeGetCurItemProperty
Method
TreeGetCurLevel
Method
TreeRefresh
Method
TreeSetCacheRecordCap
Method