SftButton/OCX 2.5

SftButton.Toggle Property

Softel vdm, Inc.

Defines whether the button is a toggle button.

Syntax       

Get

VB.NET

Boolean = object.Toggle  As Boolean

VB

Boolean = object.Toggle  As Boolean

C#.NET

bool Boolean = object.Toggle;

VC++

VARIANT_BOOL Boolean = object->Toggle;
VARIANT_BOOL Boolean = object->GetToggle();

C

HRESULT object->get_Toggle(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.Toggle   : WordBool;

Put

VB.NET

object.Toggle = Boolean  As Boolean

VB

object.Toggle = Boolean  As Boolean

C#.NET

bool object.Toggle = Boolean;

VC++

VARIANT_BOOL object->Toggle = Boolean;
void object->PutToggle(VARIANT_BOOL Boolean);

C

HRESULT object->put_Toggle(VARIANT_BOOL Boolean);

Delphi

object.Toggle := Boolean   : WordBool;

object

A SftButton object.

Boolean

Defines whether the button is a toggle button.

Boolean

Description

True

The button is a toggle button.

False

The button is not a toggle button and automatically returns to its released state after being pressed.

Comments

The Toggle property defines whether the button is a toggle button.

Once the mouse button is released after clicking a button, a button usually returns to its released position (i.e., not pressed). By defining the button as a toggle button using the Toggle property, the button can instead act as an on/off switch. Each mouse click will alternate between the pressed and released positions.

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


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