#include <dialogs.h>
Inheritance diagram for TParamText::

Public Methods | |
| TParamText (const TRect &bounds) | |
| ~TParamText () | |
| virtual void | getText (char *s) |
| virtual void | setText (char *fmt,...) |
| virtual int | getTextLen () |
Static Public Methods | |
| TStreamable* | build () |
Static Public Attributes | |
| const char* const | name |
Protected Methods | |
| TParamText (StreamableInit) | |
| virtual void | write (opstream &os) |
| virtual void* | read (ipstream &is) |
Protected Attributes | |
| char* | str |
TParamText is derived from TStaticText. It handles parameterized text strings for formatted output. Check TStaticText if you want to show only fixed text (non run-time selectable).
Definition at line 1924 of file dialogs.h.
|
|
Constructor. `bounds' is the bounding rectangle of the view. Creates and initializes a static text object by calling TStaticText::TStaticText(bounds, 0). The string is initially empty. Use setText() to assign the text.
|
|
|
Undocumented. |
|
|
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. |
|
|
Creates a new TParamText. Called to create an object in certain stream-reading situations. Reimplemented from TStaticText. |
|
|
Writes a formatted text string at address `s'. If the text string is empty, *s is set to EOS. Reimplemented from TStaticText. |
|
|
Returns the length of the string, expressed in characters. |
|
|
Reads from the input stream `is'. Reimplemented from TStaticText. |
|
|
Sets a new value for the string. Since this method calls vsprintf(), you can use a printf-like style for its arguments. |
|
|
Writes to the output stream `os'. Reimplemented from TStaticText. |
|
|
Undocumented. Reimplemented from TStaticText. |
|
|
Stores the pointer to the string. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001