|
Called each day before drawing.
syntax
event OnCalendarDrawDay(
date,
&textattr,
&textcolor,
&circlefillcolor,
&circlebordercolor,
&checkcolor
)
Parameters
date
|
|
Type:
|
Number
|
|
The date on which the drawing will be performed.
|
&textattr
|
|
Type:
|
character
|
|
Attributes for the date text. Multiple attributes can be specified by separating them with commas. Example: "bold,italic"
"bold" - Bold
"italic" - Italic letters
"underline" - Underline
"strikeout" - A line drawn in the center of the character
|
&textcolor
|
|
Type:
|
Colored letters
|
|
If not specified, the text color of the date will be drawn using the TextColor property.
|
&circlefillcolor
|
|
Type:
|
Colored letters
|
|
If a circle (filled) is drawn behind the date, specify the color.
|
&circlebordercolor
|
|
Type:
|
character
|
|
If you want to draw a circle (outer frame) behind the date, specify the color.
|
&checkcolor
|
|
Type:
|
character
|
|
If a check is drawn on top of the date, specify the color.
|
Explanation
Called before drawing begins each day. Called only when DrowMode is EVENT.
After OnCalendarDrawStart is called, the number of days between the start date and the end date
OnCalendarDrawDay is called.
|
Example
|
event OnCalendarDrawDay(date,&textattr,&textcolor,&circlefillcolor,&circlebordercolor,&checkcolor)
{
// Draw checkmarks for all past days
if (#DAY# > date)
{
checkcolor = "#FF0000";
}
}
|
|
reference
OnPageChanged
OnSelectChanged
OnCalendarDrawStart
OnCalendarDrawDay
|