OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Here is the constructor for TTextGadget:
The constructor parameters are described in the following table:
Parameter | Description |
id | The gadget identifier. |
style | The gadget border style. |
align | Specifies how text should be aligned in the gadget. There are three possible values for the enum TAlign: Left, Center, and Right. |
numChars | Specifies 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. |
text | A default message to be displayed in the gadget. |
The destructor TTextGadget::~TTextGadget automatically deletes the storage for the gadget's text string.