@...FRAME
DEFINE FRAME 
Creates a Frame control.
  

Creates a Frame control.

SYNTAX

Standard Window:

@ <nRow> ,<nCol> FRAME <ControlName>
[ ID <
nId> ]
[ OF | PARENT | DIALOG <
ParentWindowName> ]
[ CAPTION <
cCaption> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ FONT <
cFontName> ]
[ SIZE <
nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ BACKCOLOR <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ OPAQUE ]
[ TRANSPARENT ]
[ INVISIBLE ]

Dialog Window:

REDEFINE FRAME <ControlName>
ID <
nId>
[ OF | PARENT | DIALOG <
ParentWindowName> ]
[ CAPTION <
cCaption> ]
[ FONT <
cFontName> ]
[ SIZE <
nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ BACKCOLOR <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ OPAQUE ]
[ TRANSPARENT ]
[ INVISIBLE ]

Alternate Syntax:

DEFINE FRAME <ControlName>
[ ID <
nId> ]
[ PARENT <
ParentWindowName> ]
COL <
nCol>
ROW <
nRow>
[ CAPTION <
cCaption> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ FONTNAME <
cFontName> ]
[ FONTSIZE <
nFontSize> ]
[ FONTBOLD < .T. | .F.> ]
[ FONTITALIC < .T. | .F.> ]
[ FONTUNDERLINE < .T. | .F.> ]
[ FONTSTRIKEOUT < .T. | .F.> ]
[ BACKCOLOR <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ OPAQUE < .T. | .F.> ]
[ TRANSPARENT < .T. | .F.> ]
[ INVISIBLE < .T. | .F.> ]

END FRAME


DESCRIPTION:
nRow, nCol
Position in the area of ??the window in pixels.
nWidth, nHeight
The desired size of the Frame Control in pixels.
nId
The ID identifier this Control in Dialog Window
ControlName
A reference to the Frame Control
ParentWindowName
A reference to the Parent Window.
cFontName
Specifies the Font Name
nFontSize
Specifies the Font Size
anBackColor
Specifies the Background Color
anFontColor
Specifies the Font Color
 
 
OPAQUE
?
TRANSPARENT
Specifies that the background of a control should be transparent
INVISIBLE
The visibility property specifies whether or not a control is visible



PROPERTIES:

·   Enabled
Set / Gets enabled state of a Frame control
·   Visible
Set / Gets visible a Frame control.
·   Row
Set / Gets row position of a Frame control.
·   Col
Set / Gets column position of a Frame control.
·   Width
Set / Gets width of a Frame control.
·   Height
Set / Gets height of a Frame control.
·   Caption
Set / Gets caption of a Frame control.
·   FontName
Set / Gets Frame control's font name.
·   FontSize
Set / Gets Frame control's font size.
·   FontBold
Set / Gets Frame control's font bold property
·   FontItalic
Set / Gets Frame control's font italic property
Set / Gets Frame control's font underline property
Set / Gets Frame control's font strikeout property
·   FontColor
Set / Gets the foreground color for text within the Frame
·   BackColor
Set / Gets the background color for text within the Frame
·   ToolTip
Set / Gets Frame control's Tooltip text.
·   CaretPos
Set / Gets the caret position of a Frame control.
·   Cargo
Set / Gets user property 'Cargo' for Frame control
·   Name (R)
Retrieves the name of a Frame control.
·   Parent(D)
Sets the name as character identifier of the parent window.
·   Opaque(D)
Sets the Frame as not transparent

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

METHODS:

·   Show
Shows a Frame control
·   Hide
Hides a Frame control
·   Release
Releases a Frame control from memory
·   SaveAs
Save a Frame control as BitMap file.


EXAMPLE:

          See demos in :
              
\Samples\Basic\AutoAdjust
               \Samples\Basic\Cargo