Vcl.ComCtrls.TMonthCalendar.OnGetMonthInfo

From RAD Studio API Documentation

Delphi

property OnGetMonthInfo: TOnGetMonthInfoEvent read FOnGetMonthInfo write FOnGetMonthInfo;

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. {{#multireplace:Vcl.ComCtrls.TMonthCalendar.OnGetMonthInfo|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.ComCtrls.TCommonCalendar.OnGetMonthInfo|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.ComCtrls.TCommonCalendar.OnGetMonthInfo|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

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