| Class | Fox::FXCheckButton |
| In: |
rdoc-sources/FXCheckButton.rb
lib/fox12/core.rb |
| Parent: | FXLabel |
A check button is a tri-state button. Normally, it is either TRUE or FALSE, and toggles between TRUE or FALSE whenever it is pressed. A third state MAYBE may be set to indicate that no selection has been made yet by the user, or that the state is ambiguous.
The following messages are sent by FXCheckButton to its target:
| 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. |
| SEL_COMMAND: | sent when the button is clicked. |
| CHECKBUTTON_AUTOGRAY: | Automatically gray out when not updated |
| CHECKBUTTON_AUTOHIDE: | Automatically hide when not updated |
| CHECKBUTTON_PLUS: | Draw a plus sign for unchecked and minus sign for checked |
| CHECKBUTTON_NORMAL: | JUSTIFY_NORMAL|ICON_BEFORE_TEXT |
| boxColor | [RW] | Box background color [FXColor] |
| checkButtonStyle | [RW] | Check button style [Integer] |
| checkColor | [RW] | Box check color [FXColor] |
| checkState | [RW] | Check button state (TRUE, FALSE or MAYBE) [Integer] |
Return true if the check state for this check button is TRUE, or false if the check state is either FALSE or MAYBE.
Return true if the check state for this check button is MAYBE, or false if the check state is either TRUE or FALSE.