[tvision Index] [tvision Hierarchy] [Headers]
A cluster of radio buttons More...
#include <dialogs.h>
Inherits: TCluster
This view implements a cluster of radio buttons.
Only one button is allowed to be pressed at any time.
See Also: TCheckBoxes, TCluster
[public]
Constructor.
`bounds' is the bounding rectangle of the view. `aStrings' points to a list of TSItem objects, one for each radio button. Every TSItem object stores the caption of the related radio button. TRadioButtons handles a maximum of 32 radio buttons.
[public virtual]
Draws the view.
Redefines TView::draw().
[public virtual]
Returns True if the specified radio button is pressed.
Integer `item' specifies which radio button to check. 0 is the first radio button, 1 is the second radio button, etc. Redefines TCluster::mark().
[public virtual]
Called whenever the user moves the selection to another radio button.
Sets `value' to `item'. This will press `item' radio button and release the previously pressed radio button.
[public virtual]
Called to press another radio button.
Integer `item' specifies which radio button to press. The previous radio button is released. 0 is the first radio button, 1 the second radio button, etc. Redefines TCluster::press().
[public virtual]
Writes the data record of this view.
This method calls TCluster::setData() and after sets `sel' to `value'. This will move the selection on the currently pressed radio button.
[public static]
Creates a new TRadioButtons view.
Used to recover the view from a stream.
[protected]
Constructor.
Used to recover the view from a stream.
Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999 | Kdoc |