Label
The Label control is a more modern version of the @ ... SAY command, with added features that allow its participation in the event loop.
Property |
Value |
Purpose |
Numeric |
Tells the Label control to resize itself automatically to fit the text specified with Caption. |
|
Character |
Up to 256 characters to be displayed. Preceding a character with "\<" causes that character to act as an "access" or "hot" key, moving focus to the next control beyond the label in tab order. This is a neat solution for providing accelerator keys to those controls lacking a Caption. |
|
Numeric |
Causes the Caption text to be wrapped onto multiple lines with a fixed Width property. Even with AutoSize set .T., the Height of the Label control does not change to accommodate the wrapped text. |
Example |
oForm.AddObject("lblMyText","Label") WITH oForm.lblMyText .Top = 20 .AutoSize = .T. .FontName = "Times New Roman" .FontSize = 18 .FontItalic = .T. .Caption = "Hello, World!" .ForeColor = 4259584 .Visible = .T. ENDWITH |
See Also |