Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxItems.SelectionStyle Property

Defines the appearance of the currently selected item.

Syntax

Get

VB.NETStyle = object.SelectionStyle As SftBoxSelectionStyleConstants
VBStyle = object.SelectionStyle As SftBoxSelectionStyleConstants
C#.NETSftBoxSelectionStyleConstants Style = object.SelectionStyle;
VC++enum SftBoxSelectionStyleConstants Style = object->SelectionStyle;
enum SftBoxSelectionStyleConstants Style = object->GetSelectionStyle();
CHRESULT object->get_SelectionStyle(enum SftBoxSelectionStyleConstants* Style);

Put

VB.NETobject.SelectionStyle = Style As SftBoxSelectionStyleConstants
VBobject.SelectionStyle = Style As SftBoxSelectionStyleConstants
C#.NETSftBoxSelectionStyleConstants object.SelectionStyle = Style;
VC++enum SftBoxSelectionStyleConstants object->SelectionStyle = Style;
void object->PutSelectionStyle(enum SftBoxSelectionStyleConstants Style);
CHRESULT object->put_SelectionStyle(enum SftBoxSelectionStyleConstants Style);

object

A SftBoxItems object.

Style

Defines the appearance of the currently selected item.

StyleValueDescription
selectSftBoxAll0Highlights the entire item.
selectSftBoxCells1Highlights cells only (excludes the label picture, tree lines, item picture).
selectSftBoxCell12Highlights the text in the first displayed cell only.
selectSftBoxCellFirst3Highlights 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 SelectionStyle 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.

See Also SftBoxItems Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.