Vcl.ComCtrls.TMonthCalendar.OnGetMonthInfo
Delphi
property OnGetMonthInfo;
C++
__property OnGetMonthInfo;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TMonthCalendar |
Description
Called whenever a new month is displayed in the calendar.
Vcl.ComCtrls.TMonthCalendar.OnGetMonthInfo inherits from Vcl.ComCtrls.TCommonCalendar.OnGetMonthInfo. All content below this line refers to Vcl.ComCtrls.TCommonCalendar.OnGetMonthInfo.
Called whenever a new month is displayed in the calendar.
Use the OnGetMonthInfo event to initialize the display properties of a month. In particular, OnGetMonthInfo allows applications to bold individual days in the calendar (such as holidays).
To specify that specific dates are to be bolded, use the BoldDays method to obtain a value that can be returned as the MonthBoldInfo parameter. For example, to bold the first and eighth days of every month that is displayed, call
BoldDays([1,8], MonthBoldInfo);
unsigned bolddays[2] = {1,2};
BoldDays(bolddays, MonthBoldInfo);
from the OnGetMonthInfo event handler.
OnGetMonthInfo is an event handler of type Vcl.ComCtrls.TOnGetMonthInfoEvent.