Table Tree Property Page: Structure 

The property page Structure defines single Structure items (see also Configuring the Tree). Within this property page the number of Structure items defined in the Table Tree Property Page: General may be configured.

Property

Description

Item

Choose the item you want to configure.

Name

Enter a unique name for the item. A dynamic node property is generated for this name for every node object during runtime. The name may also be empty. Then the item is only accessible through the Data property of the Node object with an appropriate index.

Width

Enter the number of pixels to be used for displaying the item. This value is only used as long as Alignment is not set to Auto.

Hidden

Set Hidden to FALSE if the item should be displayed.

Focus

Set Focus to TRUE if the item should take on the focus.

(See also SelectMode property of Table Tree object.)

ExpandOnDblClick

Set ExpandOnDblClick to TRUE if the node should be expanded or collapsed when the user invokes a double-click on the item.

Alignment

Choose the desired alignment type for the item. If Auto is not used, the item is displayed using the number of pixels defined in the Width property while painting.

Type

Choose the desired item type:

 

Hierarchy

The item is the hierarchy item and drawn as an hierarchy expander. This type is only disabled but may not be modified or assigned. The hierarchy item may be removed by changing the type property of the Table Tree object to ‘Show leafs’ in the Table Tree Property Page: General Dialog.

 

Image

The item is an image. The corresponding dynamic node property is an index in the ImageList property of the Table Tree object.

 

Text

The item is from type text. The corresponding dynamic node property is converted to a VT_VSTR value and displayed when the node is painted.

TableColumnIndex

Enter the column index of a connected SAP Table control.

(See also Connecting Tree Views and Table Objects)

The hierarchy type is only allowed for the first Item. If a hierarchy item is used, the name is forced to ‘Level’. The according node creates a dynamic ‘Level’ property which returns the level of the according node within the entire tree. This property is always read-only. It is not possible to define more than one item of type hierarchy. If the hierarchy type is omitted by modifying the Table Tree object‘s Type property, the general behavior of the control changes (see Appearance for Different Configurations).