@...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
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:
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.
| |
Set the name as character identifier of the parent window.
| |
Set the numeric help topic identifier of the control.
| |
Sets whether an element behavior can't receive focus and participate
in the tabbing sequence
| |
Sets the value that is used by MonthCalendar as not today's date
| |
Sets a value indicating whether today's date is identified with a
square (not circle)
| |
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:
Action to be performed when generic changing of the control
| |
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
| |
Redraw a 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: