SftBox/OCX 4.5

SftBoxItem.Enabled Property

Softel vdm, Inc.

Defines the item's enabled/disabled status.

Syntax       

Get

VB.NET

Boolean = object.Enabled  As Boolean

VB

Boolean = object.Enabled  As Boolean

C#.NET

bool Boolean = object.Enabled;

VC++

VARIANT_BOOL Boolean = object->Enabled;
VARIANT_BOOL Boolean = object->GetEnabled();

C

HRESULT object->get_Enabled(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.Enabled   : WordBool;

Put

VB.NET

object.Enabled = Boolean  As Boolean

VB

object.Enabled = Boolean  As Boolean

C#.NET

bool object.Enabled = Boolean;

VC++

VARIANT_BOOL object->Enabled = Boolean;
void object->PutEnabled(VARIANT_BOOL Boolean);

C

HRESULT object->put_Enabled(VARIANT_BOOL Boolean);

Delphi

object.Enabled := Boolean   : WordBool;

object

A SftBoxItem object.

Boolean

Defines the item's enabled/disabled status.

Boolean

Description

True

The item is enabled.

False

The item is disabled.

Comments

The Enabled property defines the item's enabled/disabled status.

A disabled item is drawn in a "grayed" fashion indicating its status. It uses the colors specified for the disabled state (usually containing the text "Grayed").

Except for the visual difference, a disabled item acts like an enabled item and generates the same events. It is up to the application to implement a different behavior if desired. The Items.SelectEnabledItemsOnly property can be used to define whether only enabled items can be selected by the user using the mouse or keyboard.


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