SftButton/OCX 2.5

SftButton.DropDownToggle Property

Softel vdm, Inc.

Defines whether the drop down button is a toggle button.

Syntax       

Get

VB.NET

Boolean = object.DropDownToggle  As Boolean

VB

Boolean = object.DropDownToggle  As Boolean

C#.NET

bool Boolean = object.DropDownToggle;

VC++

VARIANT_BOOL Boolean = object->DropDownToggle;
VARIANT_BOOL Boolean = object->GetDropDownToggle();

C

HRESULT object->get_DropDownToggle(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.DropDownToggle   : WordBool;

Put

VB.NET

object.DropDownToggle = Boolean  As Boolean

VB

object.DropDownToggle = Boolean  As Boolean

C#.NET

bool object.DropDownToggle = Boolean;

VC++

VARIANT_BOOL object->DropDownToggle = Boolean;
void object->PutDropDownToggle(VARIANT_BOOL Boolean);

C

HRESULT object->put_DropDownToggle(VARIANT_BOOL Boolean);

Delphi

object.DropDownToggle := Boolean   : WordBool;

object

A SftButton object.

Boolean

Defines whether the drop down button is a toggle button.

Boolean

Description

True

The drop down button is a toggle button.

False

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

Comments

The DropDownToggle property defines whether the drop down 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 drop down button as a toggle button using the DropDownToggle property, the drop down button can instead act as an on/off switch. Each mouse click will alternate between the pressed and released positions.

The status of the drop down button can be defined using the DropDownPressed property.

The button portion is controlled by the equivalent Toggle property.


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