SftBox/OCX 4.5

SftBoxItems.SelectionStyle Property

Softel vdm, Inc.

Defines the appearance of the currently selected item.

Syntax       

Get

VB.NET

Style = object.SelectionStyle  As SftBoxSelectionStyleConstants

VB

Style = object.SelectionStyle  As SftBoxSelectionStyleConstants

C#.NET

SftBoxSelectionStyleConstants Style = object.SelectionStyle;

VC++

enum SftBoxSelectionStyleConstants Style = object->SelectionStyle;
enum SftBoxSelectionStyleConstants Style = object->GetSelectionStyle();

C

HRESULT object->get_SelectionStyle(enum SftBoxSelectionStyleConstants* Style);

Delphi

Style := object.SelectionStyle  : TOleEnum;

Put

VB.NET

object.SelectionStyle = Style  As SftBoxSelectionStyleConstants

VB

object.SelectionStyle = Style  As SftBoxSelectionStyleConstants

C#.NET

SftBoxSelectionStyleConstants object.SelectionStyle = Style;

VC++

enum SftBoxSelectionStyleConstants object->SelectionStyle = Style;
void object->PutSelectionStyle(enum SftBoxSelectionStyleConstants Style);

C

HRESULT object->put_SelectionStyle(enum SftBoxSelectionStyleConstants Style);

Delphi

object.SelectionStyle := Style  : TOleEnum;

object

A SftBoxItems object.

Style

Defines the appearance of the currently selected item. 

Style

Value

Description

selectSftBoxAll

0

Highlights the entire item.

selectSftBoxCells

1

Highlights cells only (excludes the label picture, tree lines, item picture).

selectSftBoxCell1

2

Highlights the text in the first displayed cell only.

selectSftBoxCellFirst

3

Highlights the entire first first displayed cell.

Comments

The SelectionStyle property defines the appearance of the currently selected item.

When using the 3D display mode (enabled using the Items.Appearance property), selectSftBoxAll is equivalent to selectSftBoxCells.

The Items.NoFocusStyle property is used to change the appearance of selected items in a control that does not have the input focus.

The Items.SelectStyle and Items.NoFocusStyle properties work in conjunction with the Items.OutlineStyle property to determine the exact appearance of selected items. The highlighted portion of an item is rendered using the outline style defined by the Items.OutlineStyle property.


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