SSpread.TypeButtonType Property
In the command button type cell, set the type of command button.
Only valid for cells with $CellTypeButton (command button type) set in the CellType property. Before setting this property, use the Col and Row properties, and so on to specify what to do.
Specify the following values. The initial value is $TypeButtonTypeNormal.
| Constant | Value | Description |
|---|---|---|
| $TypeButtonTypeNormal | 0 | Standard |
| $TypeButtonTypeTwoState | 1 | Maintained Contact (toggle button) |
$TypeButtonTypeTwoState (maintained contact) is a button that holds the pressed state and returns to the original when pressed again. The state of the button can be obtained with the Text property and Value property. (Not pressed = “0”, pressed = “1”)
This property is subject to property inheritance for command button cells.
Example of usage
Col = 3;
Row = 2;
CellType = $CellTypeButton;
TypeButtonType = $TypeButtonTypeTwoState;
BlockMode = $TRUE;
Col = 3;
Row = 3;
Col2 = 5;
Row2 = 5;
CellType = $CellTypeButton;
TypeButtonType = $TypeButtonTypeNormal;
BlockMode = $FALSE;
Related Items
CellType, Text, Value properties