SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftTree/NET 2.0 - Tree Control
Defines whether the button is a toggle button.
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); |
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); |
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. |
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.
See Also SftButton Object | Object Hierarchy
