@...MONTHCALENDAR
DEFINE MONTHCALENDAR
  

Creates a MonthCalendar control

SYNTAX

Standard Window:

@ <row>,<col> MONTHCALENDAR <ControlName>
[ ID <
nId> ]
[ OF | PARENT | DIALOG <
ParentWindowName> ]
[ VALUE <
dValue> ]
[ FONT <
cFontName> ]
[ SIZE <
nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cTooltip> ]
[ BACKCOLOR <
aBackColor> ]
[ FONTCOLOR <
aFontColor> ]
[ TITLEBACKCOLOR <
aTitleBackColor> ]
[ TITLEFONTCOLOR <
aTitleFontColor> ]
[ BACKGROUNDCOLOR <
aBackGroundColor> ]
[ TRAILINGFONTCOLOR <
aTrailingFontColor> ]
[ NOTODAY ]
[ NOTODAYCIRCLE ]
[ WEEKNUMBERS ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]

Dialog Window:

REDEFINE MONTHCALENDAR <ControlName>
ID <
nId>]
[ OF | PARENT | DIALOG <
ParentWindowName> ]
[ VALUE <
dValue> ]
[ FONT <
cFontName> ]
[ SIZE <
nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cTooltip> ]
[ NOTODAY ]
[ NOTODAYCIRCLE ]
[ WEEKNUMBERS ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]

Alternate Syntax:

DEFINE MONTHCALENDAR <ControlName>

[ ID <nId> ]
[ PARENT <
ParentWindowName> ]
COL <
nCol>
ROW <
nRow>
[ VALUE <
dValue> ]
[ FONTNAME <
cFontname>
[ FONTSIZE <
nFontsize> ]
[ FONTBOLD < .T. | .F.> ]
[ FONTITALIC < .T. | .F.> ]
[ FONTUNDERLINE < .T. | .F.> ]
[ FONTSTRIKEOUT < .T. | .F.> ]
[ TOOLTIP <
cTooltip> ]
[ BACKCOLOR <
aBackColor> ]
[ FONTCOLOR <
aFontColor> ]
[ TITLEBACKCOLOR <
aTitleBackColor> ]
[ TITLEFONTCOLOR <
aTitleFontColor> ]
[ BACKGROUNDCOLOR <
aBackGroundColor> ]
[ TRAILINGFONTCOLOR <
aTrailingFontColor> ]
[ NOTODAY < .T. | .F.> ]
[ NOTODAYCIRCLE < .T. | .F.> ]
[ WEEKNUMBERS < .T. | .F.> ]
[ INVISIBLE < .T. | .F.> ]
[ NOTABSTOP < .T. | .F.> ]
[ ONCHANGE <
OnChangeProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]

END MONTHCALENDAR

PROPERTIES:

·   Value
Set / Gets MonthCalendar value.
·   Enabled
Set / Gets enabled state of a MonthCalendar control
·    Visible
Set / Gets visible a MonthCalendar control.
·    Row
Set / Gets row position of a MonthCalendar control.
·    Col
Set / Gets column position of a MonthCalendar control.
·    Width
Set / Gets width of a MonthCalendar control.
·   Height
Set / Gets height of a MonthCalendar control.
·   FontName
Set / Gets MonthCalendar control's font name.
·   FontSize
Set / Gets MonthCalendar control's font size.
·   FontBold
Set / Gets MonthCalendar control's font bold property
·   FontItalic
Set / Gets MonthCalendar control's font italic property
Set / Gets MonthCalendar control's font underline property
Set / Gets MonthCalendar control's font strikeout property
·   ToolTip
Set / Gets MonthCalendar control's tooltip text.
·   Cargo
Set / Gets user property 'Cargo' for MonthCalendar control
·   Name (R)
Retrieves the name of a MonthCalendar control.
·   Parent (D)
Set the name as character identifier of the parent window.
·   HelpId (D)
Set the numeric help topic identifier of the control.
·   NoTabStop (D)
Sets whether an element behavior can't receive focus and participate in the tabbing sequence
·   NoToday (D) 
Sets the value that is used by MonthCalendar as not today's date
·   NoTodayCircle (D)
Sets a value indicating whether today's date is identified with a square (not circle)
·   WeekNumbers (D)
Sets a value indicating whether the month calendar control displays week numbers (1-52) to the left of each row of days.

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

EVENTS:

·   OnChange
An action to be performed when generic changing of the control
·   OnSelect
This event operates whenever the currently displayed date changes via month change, year change, keyboard navigation, prev/next button.

METHODS:

·   Show
Shows a MonthCalendar control
·   Hide
Hides a MonthCalendar control
·   SetFocus
Gives the focus to a MonthCalendar control
·   Release
Releases a MonthCalendar control from memory
·   Refresh
Repaint a Control
·   SaveAs
Save a MonthCalendar control as BitMap file.

EXAMPLE:

See demo in :
\Samples\Basic\MonthCal