HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

ButtonStyle Property, SftTree Object

Defines the expand/collapse button display method.

Syntax

Get

VB.NETStyle = object.ButtonStyle As SftTreeButtonStyleConstants
VBStyle = object.ButtonStyle As SftTreeButtonStyleConstants
C#.NETSftTreeButtonStyleConstants Style = object.ButtonStyle;
VC++enum SftTreeButtonStyleConstants Style = object->ButtonStyle;
enum SftTreeButtonStyleConstants Style = object->GetButtonStyle();
CHRESULT object->get_ButtonStyle(enum SftTreeButtonStyleConstants* Style);

Put

VB.NETobject.ButtonStyle = Style As SftTreeButtonStyleConstants
VBobject.ButtonStyle = Style As SftTreeButtonStyleConstants
C#.NETSftTreeButtonStyleConstants object.ButtonStyle = Style;
VC++enum SftTreeButtonStyleConstants object->ButtonStyle = Style;
void object->PutButtonStyle(enum SftTreeButtonStyleConstants Style);
CHRESULT object->put_ButtonStyle(enum SftTreeButtonStyleConstants Style);

object

A SftTree object.

Style

Defines the expand/collapse button display method.

StyleValueDescription
buttonsSftTreeNone0None. The tree control does not display expand/collapse buttons.
buttonsSftTree11The tree control displays expand/collapse buttons for parent items on level 1 and above.
buttonsSftTreeAll2The tree control displays expand/collapse buttons for parent items on all levels.

Comments

The ButtonStyle property defines the expand/collapse button display method.

If the connecting tree lines are not displayed (see Items.TreeLineStyle property), the expand/collapse buttons are not shown. Tree lines are required for expand/collapse buttons to be shown.

The expand/collapse buttons graphic is defined using the ButtonAppearance property.

Examples

VB6

      xBfStyle4       =   793678321
      FlatProperties  =   0
      Appearance      =   1
      AutoRespond     =   -842150451
      BackgroundStyle =   0
      BackgroundX     =   0
      BackgroundY     =   0
      BorderStyle     =   0
      ButtonStyle     =   2
      CellEventHandling=   0
      CellEditStyle   =   0
      CellEditLimit   =   0
      ColumnCount     =   2
      CopyItemDataString=   1
      CustomCode      =   0
      DragImage       =   -842150451

See Also SftTree Object | Object Hierarchy


Last Updated 05/24/2026 - (email)
© 2026 Softel vdm, Inc.