class Fox::FXToggleButton

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.

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_KEEPSTATE

Draw button according to state

TOGGLEBUTTON_NORMAL

FRAME_RAISED|FRAME_THICK|JUSTIFY_NORMAL|ICON_BEFORE_TEXT