@...MONTHCALENDAR
DEFINE MONTHCALENDAR
Create a MonthCalendar control
  

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 <
cToolTipText> ]
[ BACKCOLOR <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ TITLEBACKCOLOR <
anTitleBackColor> ]
[ TITLEFONTCOLOR <
anTitleFontColor> ]
[ BACKGROUNDCOLOR | BKGNDCOLOR <
anBackGroundColor> ]
[ TRAILINGFONTCOLOR <
anTrailingFontColor> ]
[ NOTODAY ]
[ NOTODAYCIRCLE ]
[ WEEKNUMBERS ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ ON GOTFOCUS <
OnGotFocusProcedure> | <bBlock> ] 
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON SELECT <
OnSelectProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ ON INIT <
bInit> ]

Dialog Window:

REDEFINE MONTHCALENDAR <ControlName>
ID <
nId>]
[ OF | PARENT | DIALOG <
ParentWindowName> ]
[ VALUE <
dValue> ]
[ FONT <
cFontName> ]
[ SIZE <
nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTipText> ]
[ NOTODAY ]
[ NOTODAYCIRCLE ]
[ WEEKNUMBERS ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ ON GOTFOCUS <
OnGotFocusProcedure> | <bBlock> ] 
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON SELECT <OnSelectProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ ON INIT <
bInit> ]

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 <
cToolTipText> ]
[ BACKCOLOR <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ TITLEBACKCOLOR <
anTitleBackColor> ]
[ TITLEFONTCOLOR <
anTitleFontColor> ]
[ BACKGROUNDCOLOR | BKGNDCOLOR <
anBackGroundColor> ]
[ TRAILINGFONTCOLOR <
anTrailingFontColor> ]
[ NOTODAY < .T. | .F.> ]
[ NOTODAYCIRCLE < .T. | .F.> ]
[ WEEKNUMBERS < .T. | .F.> ]
[ INVISIBLE < .T. | .F.> ]
[ NOTABSTOP < .T. | .F.> ]
[ ON GOTFOCUS <
OnGotFocusProcedure> | <bBlock> ]
[ ONCHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON SELECT <OnSelectProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ ONINIT <
bInit> ]

END MONTHCALENDAR


DESCRIPTION:
nRow, nCol
Position in the area of ??the window in pixels.
nWidth, nHeight
The desired size of the MonthCalendar Control in pixels.
nId
The ID identifier this Control in Dialog Window
ControlName
A reference to the MonthCalendar Control
ParentWindowName
A reference to the Parent Window.
nHelpID
The help topic identifier for this control
dValue
Specifies the Dates to be highlighted in 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
anTitleBackColor
Specifies the Title Background Color
anTitleFontColor
Specifies the Title Font Color
anBackgroundColor
?
anTrailingFontColor
?
OnGotFocusProcedure
Action to be executed when control Get Focus
OnChangeProcedure
Action to be executed when control Change
OnSelectProcedure
Action to be executed when control Get Selected
OnLostFocusProcedure
Action to be executed when control Lost Focus
 
 
NOTODAY
?
NOTODAYCIRCLE
Specifies that control it does circle today's date
WEEKNUMBERS
Specifies that control will show week numbers
INVISIBLE
The visibility property specifies whether or not a control is visible
NOTABSTOP
Stop the control to receive focus and participate in the tabbing sequence


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.
Set / Gets MonthCalendar the first day of the week

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

EVENTS:

·   OnChange
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
·   Redraw
Redraw a 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
      \Samples\Advanced\Tbs_Calendar