Vcl.ComCtrls.TOnGetMonthInfoEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TOnGetMonthInfoEvent)(System::TObject* Sender, unsigned Month, unsigned &MonthBoldInfo);

Properties

Type Visibility Source Unit Parent
typedef public Vcl.ComCtrls.hpp Vcl.ComCtrls Vcl.ComCtrls

Description

TOnGetMonthInfoEvent is the type of the Vcl.ComCtrls.TCommonCalendar.OnGetMonthInfo and the Vcl.ComCtrls.TCommonCalendar.OnGetMonthInfo event handlers.

Use TOnGetMonthInfoEvent along with the BoldDays method to set which days are bold in the month that is about to be displayed in the calendar.

Sender is the TObject for the calendar.

Month is a value that corresponds to the month that is about to be displayed in the calendar. If Month is 1, January is about to be displayed, if Month is 2, February is about to be displayed, and so on.

MonthBoldInfo specifies which days of the month should be bold. You should pass MonthBoldInfo to the BoldDays method. You shouldn't work with BoldDays directly.

The first 31 bits of the MonthBoldInfo variable are used to determine whether a particular day of the month should be bold.

See Also