@...LABEL DEFINE LABEL Create a Label control
|
Creates a label control.
SYNTAX
Standard Window:
@ <nRow> ,<nCol> LABEL
<ControlName>
[ ID <nId> ]
[ OF | PARENT | DIALOG <ParentWindowName> ]
VALUE <cValue | <bBlock>>
[ ACTION | ONCLICK | ON CLICK <OnClickProcedure> | <bBlock>
]
[ ON DBLCLICK <OnDblClickProcedure>
]
[ ON MOUSEHOVER | ONMOUSEHOVER <OnHoverProcedure> | <bBlock>
]
[ ON MOUSELEAVE | ONMOUSELEAVE <OnLeaveProcedure> | <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 ]
[ VCENTERALIGN ]
[[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ ON INIT <bInit> ]
Dialog Window:
REDEFINE LABEL
<ControlName>
ID <nId>
[ OF | PARENT | DIALOG <ParentWindowName> ]
VALUE <cValue | <bBlock>>
[ ACTION | ONCLICK | ON CLICK <OnClickProcedure> | <bBlock> ]
[ ON DBLCLICK <OnDblClickProcedure>
]
[ ON MOUSEHOVER | ONMOUSEHOVER <OnHoverProcedure> | <bBlock>
]
[ ON MOUSELEAVE | ONMOUSELEAVE <OnLeaveProcedure> | <bBlock>
]
[ AUTOSIZE ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <anBackColor> ]
[ FONTCOLOR <anFontColor> ]
[ BORDER ]
[ CLIENTEDGE ]
[ HSCROLL ]
[ VSCROLL ]
[ TRANSPARENT ]
[ BLINK ]
[ RIGHTALIGN | CENTERALIGN ]
[ VCENTERALIGN ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ ON INIT <bInit> ]
Alternate Syntax:
DEFINE LABEL
[ ID <nId> ]
[ PARENT <ParentWindowName> ]
COL <nCol>
ROW <nRow>
VALUE <cValue | <bBlock>>
[ ACTION <OnClickProcedure> | <bBlock> ]
[ ONDBLCLICK <OnDblClickProcedure>
]
[ ONMOUSEHOVER <OnHoverProcedure> | <bBlock> ]
[ ONMOUSELEAVE <OnLeaveProcedure> | <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 <anBackColor> ]
[ 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.> ]
[ NOPREFIX ]
[ ONINIT <bInit> ]
END LABEL
nRow, nCol
|
Position in the area of ??the window in pixels.
|
nWidth, nHeight
|
The desired size of the Label control in pixels.
|
nId
|
The ID identifier this Control in Dialog Window
|
ControlName
|
A reference to the Label control
|
ParentWindowName
|
A reference to the Parent Window.
|
nHelpID
|
The help topic identifier for this Control
|
cValue
|
Specifies the Caption of the Label conrol
|
OnClickProcedure
|
An action to be performed when Clicking the control
|
OnHoverProcedure
|
An action to be performed when Mouse Hover over the
control
|
OnLeaveProcedure
|
An action to be performed when Mouse Leave from over
the control
|
cFontName
|
Specifies the Font Name
|
cFontSize
|
Specifies the Font Size
|
cToolTipText
|
Specifies the Text for the ToolTip
|
anBackColor
|
Specifies the Background Color
|
anFontColor
|
Specifies the Font Color
|
|
|
AUTOSIZE
|
Specifies to Auto size the control with the real length of the
Label Value
|
BORDER
|
Specifies to draw border around the Label control
|
CLIENTEDGE
|
?
|
HSCROLL
|
?
|
VSCROLL
|
?
|
TRANSPARENT
|
Specifies that the background of a control should be
transparent
|
BLINK
|
Specifies to set the Blink mode for the Label caption
|
RIGHTALIGN
|
Specifies to Right align the Label caption
|
CENTERALIGN
|
Specifies to Center align the Label caption
|
VCENTERALIGN
|
?
|
INVISIBLE
|
The visibility property specifies whether or not a control is
visible
|
PROPERTIES:
Set / Gets Label value.
| |
Set / Gets enabled state of a Label control
| |
Set / Gets visible a Label control.
| |
Set / Gets row position of a Label control.
| |
Set / Gets column position of a Label control.
| |
Set / Gets width of a Label control.
| |
Set / Gets height of a Label control.
| |
Set / Gets action of a Label control..
| |
Set / Gets Label control's font name.
| |
Set / Gets Label control's font size.
| |
Set / Gets Label control's font bold property
| |
Set / Gets Label control's font italic property
| |
Set / Gets Label control's font underline property
| |
Set / Gets Label control's font strikeout property
| |
Set / Gets the foreground color for text within the Label
| |
Set / Gets the background color for text within the Label
| |
Set / Gets the alignment for text within the Label
| |
Set / Gets t the background of a control transparent
| |
Set / Gets user property 'Cargo' for Label control
| |
Retrieves the name of a Label control.
| |
Set the name as character identifier of the parent window.
| |
Set the numeric help topic identifier of the control.
| |
Control supports an autosizing of width
| |
Sets the blink property for label control.
|
D: Available at control definition only
R: Read-Only
EVENTS:
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
| |
Action to be performed when Double Left clicking.
|
METHODS:
Shows a Label control
| |
Hides a Label control
| |
Redraw a Control
| |
Releases a Label control from memory
| |
Repaint a Control
| |
Save a
Label control as BitMap file.
|
EXAMPLE:
and sample in Chapter :
Adding a Label