SftButton/OCX 2.5

SftButton.Pressed Property

Softel vdm, Inc.

Defines whether the button is pressed (toggle button only).

Syntax       

Get

VB.NET

Boolean = object.Pressed  As Boolean

VB

Boolean = object.Pressed  As Boolean

C#.NET

bool Boolean = object.Pressed;

VC++

VARIANT_BOOL Boolean = object->Pressed;
VARIANT_BOOL Boolean = object->GetPressed();

C

HRESULT object->get_Pressed(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.Pressed   : WordBool;

Put

VB.NET

object.Pressed = Boolean  As Boolean

VB

object.Pressed = Boolean  As Boolean

C#.NET

bool object.Pressed = Boolean;

VC++

VARIANT_BOOL object->Pressed = Boolean;
void object->PutPressed(VARIANT_BOOL Boolean);

C

HRESULT object->put_Pressed(VARIANT_BOOL Boolean);

Delphi

object.Pressed := Boolean   : WordBool;

object

A SftButton object.

Boolean

Defines whether the button is pressed (toggle button only).

Boolean

Description

True

The button is pressed.

False

The button is released.

Comments

The Pressed property defines whether the button is pressed (toggle button only).

When using the Pressed property, the Click event does not occur.

The Toggle property must be set to True for this property to have an effect.

The drop down button portion is controlled by the equivalent DropDownPressed property.


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