The toggle button provides a two-state button, which toggles between the on
and the off state each time it is pressed. For each state, the toggle
button has a unique icon and text label.
Attributes
altText: | alternate text, shown when toggled [String]
|
altIcon: | alternate icon, shown when toggled [FXIcon]
|
state: | toggled state [true or false]
|
altHelpText: | alternate status line help text, shown when toggled [String]
|
altTipText: | alternate tool tip message, shown when toggled [String]
|
toggleStyle: | toggle button style [Integer]
|
Events
The following messages are sent by FXToggleButton to its target:
SEL_COMMAND: | sent when the toggle button is pressed.
|
SEL_KEYPRESS: | sent when a key goes down; the message data is an FXEvent instance.
|
SEL_KEYRELEASE: | sent when a key goes up; the message data is an FXEvent instance.
|
SEL_LEFTBUTTONPRESS: | sent when the left mouse button goes down; the message data is an FXEvent instance.
|
SEL_LEFTBUTTONRELEASE: | sent when the left mouse button goes up; the message data is an FXEvent instance.
|
Toggle button flags
TOGGLEBUTTON_AUTOGRAY: | Automatically gray out when not updated
|
TOGGLEBUTTON_AUTOHIDE: | Automatically hide toggle button when not updated
|
TOGGLEBUTTON_TOOLBAR: | Toolbar style toggle button [flat look]
|
TOGGLEBUTTON_NORMAL: | FRAME_RAISED|FRAME_THICK|JUSTIFY_NORMAL|ICON_BEFORE_TEXT
|