RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComCtrls.TOnGetMonthInfoEvent Type

TOnGetMonthInfoEvent is the type of the TCommonCalendar.OnGetMonthInfo event handler.

Pascal
TOnGetMonthInfoEvent = procedure (Sender: TObject; Month: LongWord; var MonthBoldInfo: LongWord) of object;
C++
(Sender: TObject; Month: LongWord; var MonthBoldInfo: LongWord) ( TOnGetMonthInfoEvent)();

ComCtrls

Use TOnGetMonthInfoEvent along with the TCommonCalendar.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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!