@...LABEL / DEFINE
LABEL
Creates
a label control
Standard Syntax (xBase
Style):
@ <nRow> ,<nCol>
LABEL<ControlName>
[ OF | PARENT <ParentWindowName>
]
VALUE <cValue>
[ ACTION | ONCLICK |
ON CLICK <ActionProcedureName>
| <bBlock> ]
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ AUTOSIZE ]
[ FONT <cFontname>
SIZE <nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText>
]
[ BACKCOLOR <anBackColor>
]
[ FONTCOLOR <anFontColor>]
[ TRANSPARENT ]
[ RIGHTALIGN | CENTERALIGN ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ ENDELLIPSES
]
[ NOPREFIX
]
Alternate Syntax:
DEFINE LABEL
PARENT <ParentWindowName>
ROW <nValue>
COL <nValue>
VALUE <cValue>
ONCLICK <ActionProcedureName>
WIDTH <nWidth>
HEIGHT <nHeight>
AUTOSIZE <lValue>
FONTNAME <cValue>
FONTSIZE <nValue>
FONTBOLD <lValue>
FONTITALIC <lValue>
FONTUNDERLINE <lValue>
FONTSTRIKEOUT <lValue>
TOOLTIP <cToolTipText>
BACKCOLOR <anBackColor>
FONTCOLOR <anFontColor>
TRANSPARENT <lValue>
ALIGNMENT Left | Right | Center
HELPID <nHelpId>
VISIBLE <lValue>
ENDELLIPSES <lValue>
NOPREFIX <lValue>
END LABEL
Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- AutoSize
- Name (R)
- Parent (D)
- HelpId (D)
- Alignment (D)
- EndEllipses
(D)
- NoPrefix (D)
D: Available at control definition only
R: Read-Only
Events:
- OnClick
Methods:
- Show
- Hide
- Release
Note:
ENDELLIPSES
--> If the string does not fit in the size of the
Label control, the string is truncated and ellipses (...) are added.
NOPREFIX --> Prevents interpretation of any ampersand (&)
characters in the control's text as accelerator prefix characters. These
are displayed with the ampersand removed and the next character in the string
underlined.