@...LABEL
DEFINE LABEL 
  

Creates a label control.

SYNTAX

Standard Window:

@ <nRow> ,<nCol> LABEL <ControlName>
[ ID <
nId> ]
[ OF | PARENT | DIALOG <
ParentWindowName> ]
VALUE <
cValue>
[ ACTION | ONCLICK | ON CLICK <
ActionProcedureName> | <bBlock> ]
[ ON MOUSEHOVER | ONMOUSEHOVER> <
OverProcedureName> | <bBlock>
[ ON MOUSELEAVE | ONMOUSELEAVE > <
LeaveProcedureName> | <bBlock> ] ;
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ AUTOSIZE ]
[ FONT <
cFontname> SIZE <nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTipText> ]
[ BACKCOLOR <
anBackColort> ]
[ FONTCOLOR <
anFontColor>]
[ BORDER ]
[ CLIENTEDGE ]
[ HSCROLL ]
[ VSCROLL ]
[ TRANSPARENT ]
[ BLINK ]
[ RIGHTALIGN | CENTERALIGN ]
[ HELPID <
nHelpId> ]
[ INVISIBLE ]

Dialog Window:

REDEFINE LABEL <ControlName>
ID <
nId>
[ OF | PARENT | DIALOG <
ParentWindowName> ]
VALUE <
cValue>
[ ACTION | ONCLICK | ON CLICK <
ActionProcedureName> | <bBlock> ]
[ ON MOUSEHOVER | ONMOUSEHOVER> <OverProcedureName> | <bBlock>
[ ON MOUSELEAVE | ONMOUSELEAVE > <
LeaveProcedureName> | <bBlock> ] ;
[ AUTOSIZE ]
[ FONT <
cFontname> SIZE <nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTipText> ]
[ BACKCOLOR <
anBackColort> ]
[ FONTCOLOR <
anFontColor>]
[ BORDER ]
[ CLIENTEDGE ]
[ HSCROLL ]
[ VSCROLL ]
[ TRANSPARENT ]
[ BLINK ]
[ RIGHTALIGN | CENTERALIGN ]
[
VCENTERALIGN ]
[ HELPID <
nHelpId> ]
[ INVISIBLE ]

Alternate Syntax:

DEFINE LABEL

[ ID <nId> ]
[ PARENT <
ParentWindowName> ]
COL <
nCol>
ROW <
nRow>
VALUE <
cValue>
[ ACTION <
ActionProcedureName> | <bBlock> ]
[ ONMOUSEHOVER> <OverProcedureName> | <bBlock>
[ ONMOUSELEAVE > <
LeaveProcedureName> | <bBlock> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ AUTOSIZE ]
[ FONTNAME <
cFontname>
[ FONTSIZE <
nFontsize> ]
[ FONTBOLD < .T. | .F.> ]
[ FONTITALIC < .T. | .F.> ]
[ FONTUNDERLINE < .T. | .F.> ]
[ FONTSTRIKEOUT < .T. | .F.> ]
[ TOOLTIP <
cToolTipText> ]
[ BACKCOLOR <
anBackColort> ]
[ FONTCOLOR <
anFontColor>]
[ BORDER < .T. | .F.> ]
[ CLIENTEDGE < .T. | .F.> ]
[ HSCROLL < .T. | .F.> ]
[ VSCROLL < .T. | .F.> ]
[ TRANSPARENT < .T. | .F.> ]
[ BLINK < .T. | .F.> ]
[ RIGHTALIGN < .T. | .F.> | CENTERALIGN < .T. | .F.> ]
[
VCENTERALIGN < .T. | .F.> ]
[ HELPID <
nHelpId> ]
[ INVISIBLE < .T. | .F.> ]

END LABEL

PROPERTIES:

·   Value
Set / Gets Label value.
·   Enabled
Set / Gets enabled state of a Label control
·   Visible
Set / Gets visible a Label control.
·   Row
Set / Gets row position of a Label control.
·   Col   
Set / Gets column position of a Label control.
·   Width
Set / Gets width of a Label control.
·   Height
Set / Gets height of a Label control.
·   Action
Set / Gets action of a Label control..
·   FontName
Set / Gets Label control's font name.
·   FontSize
Set / Gets Label control's font size.
·   FontBold
Set / Gets Label control's font bold property
·   FontItalic
Set / Gets Label control's font italic property
Set / Gets Label control's font underline property
Set / Gets Label control's font strikeout property
·   FontColor
Set / Gets the foreground color for text within the Label
·   BackColor
Set / Gets the background color for text within the Label
·   Cargo
Set / Gets user property 'Cargo' for Label control
·   Name (R)
Retrieves the name of a Label control.
·   Parent (D)
Set the name as character identifier of the parent window.
·   HelpId (D)
Set the numeric help topic identifier of the control.
·   AutoSize (D)
Control supports an autosizing of width
·   Blink
Sets the blink property for label control.

D: Available at control definition only
R: Read-Only

EVENTS:

·   OnClick/Action
Action to be performed when generic clicking of the control
Action to be performed when the mouse pointer hovers over the control
Action to be performed when the user moves the mouse pointer outside the boundaries of the control


METHODS:

·   Show
Shows a Label control
·   Hide
Hides a Label control
·   Release
Releases a Label control from memory
·   Refresh
Repaint a Control
·   SaveAs
Save a Label control as BitMap file.

EXAMPLE:

See demo in :
\Samples\Basic\Label
\Samples\Basic\Label_2