TRadioButtons Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


A cluster of radio buttons More...

#include <dialogs.h>

Inherits: TCluster

Public Members

Protected Members


Detailed Description

This view implements a cluster of radio buttons.

Only one button is allowed to be pressed at any time.

See Also: TCheckBoxes, TCluster


TRadioButtons( const TRect& bounds, TSItem *aStrings ) [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.

See Also:
TSItem

void draw() [public virtual]

Draws the view.

Redefines TView::draw().

See Also:
TView::draw

Boolean mark( int item ) [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().

See Also:
TCluster::mark

void movedTo( int item ) [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.

See Also:
TCluster::movedTo

void press( int item ) [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().

See Also:
TCluster::press

void setData( void *rec ) [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.

See Also:
TCluster::setData

TStreamable* build() [public static]

Creates a new TRadioButtons view.

Used to recover the view from a stream.

TRadioButtons( StreamableInit ) [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