MODIFY tree-ctl ITEM-TO-ADD "Tree Item" ITEM-COLOR 397 GIVING item-ptr
Tree view controls can specify the selection color. Use the SELECTION-COLOR property (which accepts a numeric value representing a color) to specify this. You can specify the selection color either at creation or with the MODIFY verb.
3-D | Adds 3-D decoration around the border of the control. Effective only on boxed tree views. |
BOXED | Indicates that a box should be placed around a tree view. This is the default |
BUTTONS | Places small buttons to the left of each item, which the user can click to expand or collapse the item in addition to double-clicking
the item. The buttons show a
+ if the item can be expanded, or a
- if it can be collapsed. Items with no subsidiary items do not get a button. Also, buttons are placed on the top level items
only if you also specify the
SHOW-LINES and
LINES-AT-ROOT styles.
Note: Some versions of Windows are known to have a bug that prevents the buttons from displaying correctly if you do not also specify
the
SHOW-LINES style.
|
LINES-AT-ROOT | Allows the SHOW-LINES and BUTTONS styles to apply to top-level items. Note that the runtime configuration variable TREE_ROOT_SPACE can control the number of screen columns between the left edge of the tree-view control and the root level text. |
NO-BOX | This style removes the box that normally displays around the control |
SHOW-LINES | This style causes faint lines to be drawn between the items to help clarify their nesting relationship. Lines are not drawn between top-level items unless you also specify the LINES-AT-ROOT style. |
SHOW-SEL-ALWAYS | The control always shows the current selection, even when it does not have the focus. The default is to hide the selection when the control does not have the focus. |