From RAD Studio API Documentation
Jump to: navigation, search


property OnGetMonthInfo: TOnGetMonthInfoEvent read FOnGetMonthInfo write FOnGetMonthInfo;


__property OnGetMonthInfo;


Type Visibility Source Unit Parent
event published
Vcl.ComCtrls TMonthCalendar


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.

See Also