These are organised into groups of similar types with only one selected.
You assign the text label using the caption and #formatCaption methods, and change whether the button is on with enabled. See the RadioGroup class for how you can more easily manage radio sets.
These are the supported dispatchers:
Public Member Functions | |
| this (Control parent) | |
| Register with the parent and create the button. | |
| void | caption (char[] text) |
| Change the textual caption in the button. | |
| void | alignLeft (bit value) |
| If set, the text inside the button is aligned to the left border; otherwise it is centered. | |
| void | alignRight (bit value) |
| If set, the text inside the button is aligned to the right border; otherwise it is centered. | |
| void | alignTop (bit value) |
| If set, the text inside the button is aligned to the top; otherwise it is vertically centered. | |
| bit | checked () |
| Return whether the radio button is checked. | |
| void | checked (bit value) |
| Set whether the radio button is checked. | |
| void | enabled (bit value) |
| Set whether this is active (true) or grayed and inactive (false). | |
| void | recalculate () |
| Perform size esimate recalculation. | |
Public Attributes | |
| Dispatcher | onClick |
| Dispatched when the button is clicked upon. | |
| Dispatcher | onDClick |
| Dispatched when the button is double-clicked upon; if this is empty, onClick is used instead. | |
| char[1] | digPlatformBoundLetter |
| The letter that this is bound to, or for none. | |
|
|
Change the textual caption in the button. Text where & is followed by a character is interpreted specially to underline that character (but has no higher-level effects). |
1.3.2