Language Reference Guide : 4. System Classes : TreeviewField Class : Style Attribute
 
Share this page                  
Style Attribute
Data Type: integer
4GL Access: RW
Valid values are:
TVF_CLASSIC
Specifies the style of already existing TreeviewFields. It has the following attributes, which are automatically set:
(1)  BgColor is CC_BACKGROUND.
(2)  FgColor is CC_FOREGROUND.
(3)  OutlineStyle is OS_DEFAULT.
(4)  OutlineWidth is OS_DEFAULT.
(5)  OutlineColor is CC_FOREGROUND.
(6)  RightClickBehavior is RB_NOSELECT.
(7)  FullRowSelect is FALSE.
(8)  HasCheckboxes is FALSE.
(9)  HasScrollBar is TRUE.
(10) HasHorizontalScrollBar is TRUE.
(11) ExactNodeHeight is 0.
(12) Indent is 0 (use Windows default).
(13) SelBgColor is 0 (use Windows default).
(14) SelFgColor is 0 (use Windows default).
(15) SelNoFocusBgColor is 0 (use Windows default).
(16) SelNoFocusFgColor is 0 (use Windows default).
If the user changes the style to TVF_CLASSIC, all of the above settings will be applied.
TVF_EXTENDED
Specifies that this TreeviewField exhibits different behavior from TreeviewFields with the TVF_CLASSIC style. It has no attributes that are automatically set; they are all user-settable. It is the default style for newly created treeviewfields. Newly created treeviewfields also take on different defaults for:
(1)  RightClickBehavior (see RightClickBehavior Attribute)—RB_SELECT
(2)  HasHorizontalScrollbar (see HasHorizontalScrollBar Attribute)—FALSE
If the user changes any of the 16 listed attributes of style TVF_CLASSIC in the Property Inspector, then the style is automatically converted to TVF_EXTENDED, although no other values are modified unless explicitly done so by the user.
TVF_CURRENT
Is identical to TVF_EXTENDED in the current release of OpenROAD. The difference between the styles is that if future releases create a new style, TVF_CURRENT will automatically be updated to the latest style, whereas TVF_EXTENDED will not.