Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

RadioButton Class Reference

Inherits Control.

List of all members.


Detailed Description

This control provides a text label with a button beside it that has on or off state - traditionally a circle with a black dot in it and an empty circle respectively.

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.


Member Function Documentation

void RadioButton.caption chartext  []  ) 
 

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).


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 13:12:53 2003 for dig by doxygen 1.3.2