SftTree/OCX 7.0

SftTreeItems.NoFocusStyle Property

Softel vdm, Inc.

Defines the display style of selected items when the tree control does not have the input focus.

Syntax       

Get

VB.NET

Style = object.NoFocusStyle  As SftTreeNoFocusStyleConstants

VB

Style = object.NoFocusStyle  As SftTreeNoFocusStyleConstants

C#.NET

SftTreeNoFocusStyleConstants Style = object.NoFocusStyle;

VC++

enum SftTreeNoFocusStyleConstants Style = object->NoFocusStyle;
enum SftTreeNoFocusStyleConstants Style = object->GetNoFocusStyle();

C

HRESULT object->get_NoFocusStyle(enum SftTreeNoFocusStyleConstants* Style);

Delphi

Style := object.NoFocusStyle  : TOleEnum;

Put

VB.NET

object.NoFocusStyle = Style  As SftTreeNoFocusStyleConstants

VB

object.NoFocusStyle = Style  As SftTreeNoFocusStyleConstants

C#.NET

SftTreeNoFocusStyleConstants object.NoFocusStyle = Style;

VC++

enum SftTreeNoFocusStyleConstants object->NoFocusStyle = Style;
void object->PutNoFocusStyle(enum SftTreeNoFocusStyleConstants Style);

C

HRESULT object->put_NoFocusStyle(enum SftTreeNoFocusStyleConstants Style);

Delphi

object.NoFocusStyle := Style  : TOleEnum;

object

A SftTreeItems object.

Style

Defines the display style of selected items when the tree control does not have the input focus.

Style

Value

Description

noFocusSftTreeKeepSel 

0

The selected items are drawn the same way as for a tree control that has the input focus, so the user cannot distinguish between selected items in an active tree control and an inactive control.  The Items.SelectBackColorNoFocus and Items.SelectForeColorNoFocus properties can be used to define the colors used for selected items in this case.

noFocusSftTreeFrame 

1

The selected items are drawn as items that are not selected, but are framed by a rectangle drawn using the color specified by the Items.SelectBackColor property.

noFocusSftTreeNothing 

2

The selected items are drawn as items that are not selected.  The user cannot distinguish between selected items and items that are not selected in an inactive tree control.

Comments

The NoFocusStyle property defines the display style of selected items when the tree control does not have the input focus.

The Items.SelectStyle property is used to change the appearance of selected items in a tree control that has the input focus.

The Items.EditNoFocusStyle property can be used to define the display style of selected items during cell editing.

See Also  SftTreeItems Object | Object Hierarchy


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