class TextLabel
Non-editable text on a form.
Syntax
[<oRef> =] new TextLabel(<container> [,<name expC>])
<oRef>
A variable or property—typically of <container>—in which to store a reference to the newly created TextLabel object.
<container>
The container—typically a Form object—to which you’re binding the TextLabel object.
<name expC>
An optional name for the TextLabel object. If not specified, the TextLabel class will auto-generate a name for the object.
Properties
The following tables list the properties and methods of interest in the TextLabel class. (No particular events are associated with this class.)
Property |
Default |
Description |
Left |
Determines how the text displays within the horizontal plane of its rectangular frame (0=Left, 1=Center, 2=Right) | |
Top |
Determines how the text displays in the vertical plane of its rectangular frame (0=Top, 1=Center, 2=Bottom) | |
TEXTLABEL |
Identifies the object as an instance of the TextLabel class | |
(TEXTLABEL) |
Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName | |
BtnText/BtnFace |
The color of the text | |
true |
Whether to interpret the ampersand (&) character in the text as the accelerator prefix. | |
<same as name> |
The value of the TextLabel object; the text that appears | |
false |
Whether the TextLabel object has the same background color or image as its container
| |
Method |
Parameters |
Description |
<expC> |
Returns the width of the specified string using the TextLabel object’s font
|
The following table lists the common properties, events, and methods of the TextLabel class:
Description
Use a TextLabel component to display information on a form or report, wherever features such as word-wrap and HTML formatting are not required. TextLabel is a simple, light-duty object which consumes fewer system resources than the Text component.
The TextLabel component does not support in-place editing on design surfaces.
The text property of the TextLabel component may contain character string data only.