A radio button item is a button which usually denotes one of several mutually exclusive options. It has a text label next to a (usually) round button.
You can create a group of mutually-exclusive radio buttons by specifying RB_GROUP for
the first in the group. The group ends when another radio button group is created, or there are no more radio buttons.
RB_GROUP |
Marks the beginning of a new group of radio buttons. |
RB_SINGLE |
In some circumstances, radio buttons that are notconsecutive siblings trigger a hang bug in Windows (only). If this happens, add this styleto mark the button as not belonging to a group, and implement the mutually-exclusive group behaviour yourself. |
RB_USE_CHECKBOX |
Use a checkbox button instead of radiobutton (currently supported only on PalmOS). |
See also window styles overview.
| evt_radiobutton(id) { | event | ... } | Process a EVT_COMMAND_RADIOBUTTON_SELECTED event,when the radiobutton is clicked. |
Event handling overview, RadioBox, CheckBox
RadioButton.new(Window parent, Integer id, String label,
Point pos = DEFAULT_POSITION,
Size size = DEFAULT_SIZE,
Integer style = 0,
Validator validator = DEFAULT_VALIDATOR,
String name = "radioButton")
Constructor, creating and showing a radio button.
destructor()
Destructor, destroying the radio button item.
Boolean create(Window parent, Integer id, String label,
Point pos = DEFAULT_POSITION,
Size size = DEFAULT_SIZE,
Integer style = 0,
Validator validator = DEFAULT_VALIDATOR,
String name = "radioButton")
Creates the choice for two-step construction. See RadioButton.new for further details.
Boolean get_value()
Returns true if the radio button is depressed, false otherwise.
set_value(Boolean value)
Sets the radio button to selected or deselected status. This does not cause a EVT_COMMAND_RADIOBUTTON_SELECTED event to get emitted.
[This page automatically generated from the Textile source at Thu May 01 00:50:42 +0100 2008]