II. GUI Basics
Chapter 10. Widgets Attributes
Sticky
Method signature
setSticky = "
[bool]"
[bool] Used to indicated that this button is a toggle switch. Can be used for group of buttons.
In this case each button has setGroup set to the same value
Se also
Selected and
Set Group
Setting the sticky property of a button to
true causes the button to remain in its pressed state after you release the mouse button.
Use this property for a button when you include the button widget in a group of other buttons whose sticky properties are
set also
true. There is no need to set radio buttons properties to sticky, setGroup property is sufficient to do so.
Examples
In this example we will be using a button widget. Upon user click the button is selected.
To be sticky for this group of buttons each button in the image below requires the following:
.. setSticky="true" setGroup="mygroup"
Back
Next