TCheckBoxes Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


A cluster of check boxes More...

#include <dialogs.h>

Inherits: TCluster

Public Members

Protected Members


Detailed Description

This view implements a cluster of check boxes.

Each check box can be independently checked or unchecked.

See Also: TCluster, TRadioButtons


TCheckBoxes( 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 check box. Every TSItem object stores the caption of the related check box. TCheckBoxes handles a maximum of 32 check boxes.

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 check box is checked.

Integer `item' specifies which check box to check. 0 is the first check box, 1 the second check box, etc. Redefines TCluster::mark().

See Also:
TCluster::mark

void press( int item ) [public virtual]

Called to toggle the state of a checkbox.

Integer `item' specifies which check box to toggle. 0 is the first check box, 1 is the second check box, etc. Redefines TCluster::press().

See Also:
TCluster::press

TStreamable* build() [public static]

Creates a new TCheckBoxes view.

Used to recover the view from a stream.

TCheckBoxes( 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