OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Constructing and Destroying TTextGadget

Here is the constructor for TTextGadget:

TTextGadget(int id = 0, TBorderStyle style = Recessed, TAlign alignment = Left,
uint numChars = 10, const char* text = 0);

The constructor parameters are described in the following table:

ParameterDescription
idThe gadget identifier.
styleThe gadget border style.
alignSpecifies how text should be aligned in the gadget. There are three possible values for the enum TAlign: Left, Center, and Right.
numCharsSpecifies the number of characters to be displayed in the gadget and determines gadget's width. To calculate the required gadget width, the gadget multiplies the number of characters by the maximum character width of the current font. The height of the gadget is based on the maximum character height of the current font, plus space for the margin and border.
textA default message to be displayed in the gadget.

The destructor TTextGadget::~TTextGadget automatically deletes the storage for the gadget's text string.

See Also