Class Fox::FXRadioButton
In: rdoc-sources/FXRadioButton.rb
Parent: FXLabel

A radio button is a tri-state button. Normally, it is either TRUE or FALSE; 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.

Events

The following messages are sent by FXRadioButton to its target:

SEL_COMMAND:sent when the radio 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.

RadioButton flags

RADIOBUTTON_AUTOGRAY:Automatically gray out when not updated
RADIOBUTTON_AUTOHIDE:Automatically hide when not updated
RADIOBUTTON_NORMAL:JUSTIFY_NORMAL|ICON_BEFORE_TEXT

Methods

checked?   maybe?   new   unchecked?  

Attributes

checkState  [RW]  Radio button state, one of TRUE, FALSE or MAYBE [Integer]
diskColor  [RW]  Radio disk color [FXColor]
radioButtonStyle  [RW]  Radio button style [Integer]
radioColor  [RW]  Radio ball color [FXColor]

Public Class methods

Public Instance methods

Return true if the radio button state is TRUE

Return true if the radio button state is MAYBE

Return true if the radio button state is FALSE

[Validate]