|
|
|
SftButton.Toggle Property |
Defines whether the button is a toggle button.
Syntax
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;
|
||
C |
HRESULT object->get_Toggle(VARIANT_BOOL* Boolean); |
||
Delphi |
Boolean := object.Toggle : WordBool; |
||
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;
|
||
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.