Tree View Control
Description
The tree view control uses the node that can be folded to display information in hierarchal order.
Usage
Use the tree view control and display information in hierarchal order.
Click the TreeNodeEditor property button and open the [TreeNodeEditor] dialog.
You can add, delete, and rearrange nodes in the [TreeNodeEditor] dialog. After setting the name and text for each node, close the [TreeNodeEditor] dialog.
Tree View Property
| Property | Description |
|---|---|
| --- | --- |
| AddNode | Adds the specified node. (Only available from SPEL+ programs) |
| BackColor | Sets the background color for the control. Default: Window |
| BorderStyle | Sets the border used for the control. Default: Fixed3D |
| Enabled | Sets whether the control is enabled. Default: True |
| EventTaskType | Sets the type of task used for events. Default: Normal |
| Font | Sets the font for the control text. () Default: Microsoft Sans Serif 8.25 pt |
| FontBold | The bold attribute for the current font. Default: False |
| FontItalic | The italic attribute for the current font. Default: False |
| FontName | Sets the font name of the control. Default: Microsoft Sans Serif |
| FontSize | The size for the current font in points. Default: 8.25 |
| ForeColor | Sets the foreground color for the control text. Default: WindowText |
| Height | Sets the height of the control in pixels. |
| Left | Sets the left coordinate of the control in pixels. |
| Name | Sets the name of the control. Default: TreeViewXX |
| Parent | Gets and sets the specified node. (Only available from SPEL+ programs) |
| RemoveNode | Deletes the specified node. (Only available from SPEL+ programs) |
| TabIndex | Sets the tab index of the control. |
| Text | Sets the displayed text of the control. Default: Blank |
| ToolTipText | Sets the text used in the control's tool tip. Default: Blank |
| Top | Sets the top coordinate of the control in pixels. |
| TreeNodeEditor | Displays the tree node editor screen for adding, removing, and rearranging nodes. |
| Visible | Sets whether the control is visible or not. Default: True |
| Width | Sets the width of the control in pixels. |
Tree View Event
| Event | Description |
|---|---|
| Click | Executes when the user clicks the control with the mouse. |
| SelectedNodeChanged | Executes when the selected node is changed. |