SftDirectory 2.5

SftDirectory.ControlStyle Property

Softel vdm, Inc.

Defines the control's basic style.

Syntax       

Get

VB.NET

Style = object.ControlStyle  As SftDirectoryStyleConstants

VB

Style = object.ControlStyle  As SftDirectoryStyleConstants

C#.NET

SftDirectoryStyleConstants Style = object.ControlStyle;

VC++

enum SftDirectoryStyleConstants Style = object->ControlStyle;
enum SftDirectoryStyleConstants Style = object->GetControlStyle();

C

HRESULT object->get_ControlStyle(enum SftDirectoryStyleConstants* Style);

Delphi

Style := object.ControlStyle  : TOleEnum;

Put

VB.NET

object.ControlStyle = Style  As SftDirectoryStyleConstants

VB

object.ControlStyle = Style  As SftDirectoryStyleConstants

C#.NET

SftDirectoryStyleConstants object.ControlStyle = Style;

VC++

enum SftDirectoryStyleConstants object->ControlStyle = Style;
void object->PutControlStyle(enum SftDirectoryStyleConstants Style);

C

HRESULT object->put_ControlStyle(enum SftDirectoryStyleConstants Style);

Delphi

object.ControlStyle := Style  : TOleEnum;

object

A SftDirectory object.

Style

Defines the control's basic style.

Style

Value

Description

 

styleSftDirectoryTreeView

0


TreeView-Style
TreeView displaying a hierarchical list of folders - supports multiple columns and single/multiple selection

styleSftDirectoryDetailList

1


DetailList-Style
Flat list of folders - supports multiple columns and single/multiple selection

styleSftDirectoryComboBoxTreeView

2


ComboBox TreeView-Style
Combo box displaying a hierarchical list of folders - supports multiple columns and single selection

styleSftDirectoryComboBoxDetailList

3


ComboBox DetailList-Style
Combo box displaying a flat list of folders - supports multiple columns and single selection

Comments

The ControlStyle property defines the control's basic style.

All controls styles support multiple columns and most other properties.  The combo box styles (styleSftDirectoryComboBoxTreeView and styleSftDirectoryComboBoxDetailList) however do not support multiple selection and the MultiSelect property is ignored.

The QuickSetup property page can be used to choose one of the predefined controls, which can be further refined by modifying the control's properties.

OLE drag & drop is not supported with combo box style controls.


Feedback / comments / error reports for this topic
© 2003, 2008 - Softel vdm, Inc. - www.softelvdm.com