Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxItem.Enabled Property

Defines the item's enabled/disabled status.

Syntax

Get

VB.NETBoolean = object.Enabled As Boolean
VBBoolean = object.Enabled As Boolean
C#.NETbool Boolean = object.Enabled;
VC++VARIANT_BOOL Boolean = object->Enabled;
VARIANT_BOOL Boolean = object->GetEnabled();
CHRESULT object->get_Enabled(VARIANT_BOOL* Boolean);

Put

VB.NETobject.Enabled = Boolean As Boolean
VBobject.Enabled = Boolean As Boolean
C#.NETbool object.Enabled = Boolean;
VC++VARIANT_BOOL object->Enabled = Boolean;
void object->PutEnabled(VARIANT_BOOL Boolean);
CHRESULT object->put_Enabled(VARIANT_BOOL Boolean);

object

A SftBoxItem object.

Boolean

Defines the item's enabled/disabled status.

BooleanDescription
TrueThe item is enabled.
FalseThe 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.

See Also SftBoxItem Object | Object Hierarchy


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