DAZScript abstract base class for button widgets.
DzButton implements an abstract button base. Subclasses specify how to respond to user interaction, and how to present the button to the user. If you want to create a button, create a DzPushButton.
The difference between down and on is, when a user clicks a [toggle] button to toggle it on, the button is first pressed and then released into the On state (on is
true, down is
false). When the user clicks it again (to toggle it off), the button is first pressed and then released to the Off state (on and down are
Holds the initial delay, in milliseconds, before auto-repetition begins
Holds the length of the auto-repetition interval, in milliseconds
Holds whether or not the button is checkable.
false by default.
Holds whether or not the button is checked. Only applies to checkable buttons.
Holds the Pixmap shown on the button. If the Pixmap is monochrome (e.g. its depth is 1) and it does not have a mask, the Pixmap will be its own mask. This allows transparent bitmaps to be drawn, which are important for toggle buttons. 0 if no pixmap is set.
Holds the text displayed on the button. undefined by default. An ampersand (&) in the String automatically creates an accelerator for it using the character that follows the ampersand, as the accelerator key. Any previous accelerator will be overwritten, or cleared if no accelerator is defined by the text.
Holds whether or not the button is a toggle (Read Only).
false by default.
void : toggle()
Toggles the state of a toggle button.
void : clicked()
Emitted when the button is pressed and then released.
void : pressed()
Emitted when the button is pressed.
void : released()
Emitted when the button is released.
Emitted when toggleState on this button has changed.
Emitted when the button is toggled.
trueif the button is on,
falseif the button is off.