#include <dialogs.h>
Inheritance diagram for TMultiCheckBoxes::
Public Methods | |
TMultiCheckBoxes (TRect &bounds, TSItem *aStrings, uchar aSelRange, ushort aFlags, const char *aStates) | |
~TMultiCheckBoxes () | |
virtual ushort | dataSize () |
virtual void | draw () |
virtual void | getData (void *rec) |
virtual uchar | multiMark (int item) |
virtual void | press (int item) |
virtual void | setData (void *) |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TMultiCheckBoxes (StreamableInit) | |
virtual void | write (opstream &os) |
virtual void* | read (ipstream &is) |
Definition at line 1466 of file dialogs.h.
|
Constructs a cluster of multistate check boxes by first calling the constructor inherited from TCluster, then setting the private data members selRange and flags to the values passed in `aSelRange' and `aFlags', respectively, and allocating a dynamic copy of `aStates' and assigning it to private data member states. |
|
Disposes of the multistate check boxes object by deallocating the dynamic string states and calling the destructor inherited from TCluster.
|
|
Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
Called to create an object in certain stream-reading situations. Reimplemented from TCluster. |
|
Returns the size of the data transferred by getData() and setData(), which is sizeof(long int). Reimplemented from TCluster. |
|
Draws the cluster of multistate check boxes by drawing each check box in turn, using the same box as a regular check box, but using the characters in states data member to represent the state of each box instead of the standard blank and "X". Reimplemented from TView. |
|
Typecasts `rec' into a long int and copies value into it, then calls drawView() to redraw the cluster to reflect the current state of the check boxes.
Reimplemented from TCluster. |
|
Returns the state of the item'th check box in the cluster. Reimplemented from TCluster. |
|
Changes the state of the item'th check box in the cluster. Unlike regular check boxes that simply toggle on and off, multistate check boxes cycle through all the states available to them. Reimplemented from TCluster. |
|
Reads from the input stream `is'. Reimplemented from TCluster. |
|
Typecasts `rec' into a long int, and copies its value into value, then calls drawView() to redraw the checkboxes to reflect their new states.
Reimplemented from TCluster. |
|
Writes to the output stream `os'. Reimplemented from TCluster. |
|
Undocumented. Reimplemented from TCluster. |