Setting general TreeView properties

You set most TreeView DataWindow properties in the General category in the Properties window for the DataWindow object.

The grid-related properties display only if you select the Grid Style check box when you define the TreeView DataWindow:

Property

Description

GridLines

On – Grid lines always display.

Off – Grid lines never display (columns cannot be resized at runtime).

Display Only – Grid lines display only when the DataWindow object displays online.

Print Only – Grid lines display only when the contents of the DataWindow object are printed.

GridColumnMove

Columns can be moved at runtime.

RowResize

Rows can be resized at runtime.

SelectedMouse

Data can be selected at runtime and, for example, copied to the clipboard.

TreeDefaultExpandToLevel

Expand to TreeView level 1, 2, or 3.

TreeIndent

The indent value of the child node from its parent in the units specified for the DataWindow. The indent value defines the position of the state icon. The X position of the state icon is the X position of its parent plus the indent value.

TreeSelectNodeByMouse

Whether a Tree node is selected by clicking the Tree node with the mouse.

TreeShowConnectLines

Whether lines display that connect parent nodes and child nodes. If you want to display lines that connect the rows in the detail band to their parent, select Connect Leaf Nodes.

TreeShowLeafNodeConnecLines

Whether lines display that connect the leaf nodes in the detail band rows.

TreeShowTreeNodeIcon

Whether an icon for the tree node displays. This applies to icons in the level and detail bands. For how to specify icon images, see “Setting TreeView level properties” and “Setting detail band properties”.

TreeStateIconAlignMode

Align the state icon in the middle (0), at the top (1), or at the bottom (2).