@...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:
Set / Gets MonthCalendar value.
| |
Set / Gets enabled state of a MonthCalendar control
| |
Set / Gets visible a MonthCalendar control.
| |
Set / Gets row position of
a MonthCalendar control.
| |
Set / Gets column position of a MonthCalendar control.
| |
Set / Gets width of a MonthCalendar control.
| |
Set / Gets height of a MonthCalendar control.
| |
Set / Gets MonthCalendar control's font name.
| |
Set / Gets MonthCalendar control's font size.
| |
Set / Gets MonthCalendar control's font bold property
| |
Set / Gets MonthCalendar control's font italic property
| |
Set / Gets MonthCalendar control's font underline property
| |
Set / Gets MonthCalendar control's font strikeout property
| |
Set / Gets MonthCalendar control's tooltip text.
| |
Set / Gets user property 'Cargo' for MonthCalendar control
| |
Retrieves the name of a MonthCalendar control.
| |
·
Parent (D)
|
Set the name as character identifier of the parent window.
|
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:
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:
Shows a MonthCalendar control
| |
Hides a MonthCalendar control
| |
Gives the focus to a MonthCalendar control
| |
Releases a MonthCalendar control from memory
| |
Repaint a Control
| |
Save a MonthCalendar control as BitMap file.
|
EXAMPLE: