Textual Buttons
- Last UpdatedNov 01, 2022
- 1 minute read
Toggle buttons will highlight when pressed. For example on toolbars they will turn from blue to orange when pressed, and go back to blue again when un-pressed.
The syntax to select the new mode is toggle, which can be anywhere after the button name and before the button control type or associated form, for example:
Button .B1 TOGGLE pixmap /Unselected.png /Selected.png /
Inactive.png width 16 height 16 tooltip...
The button's value-member !button.val is a BOOLEAN and reflects the button’s state, having the value TRUE when the button is pressed, and FALSE when it is not.