Vcl.ComCtrls.TDateTimePicker.MsgSetCalColors
Delphi
function MsgSetCalColors(ColorIndex: Integer; ColorValue: TColor): Boolean; override;
C++
virtual bool __fastcall MsgSetCalColors(int ColorIndex, System::Uitypes::TColor ColorValue);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TDateTimePicker |
Description
Sets the calendar's colors.
Vcl.ComCtrls.TDateTimePicker.MsgSetCalColors inherits from Vcl.ComCtrls.TCommonCalendar.MsgSetCalColors. All content below this line refers to Vcl.ComCtrls.TCommonCalendar.MsgSetCalColors.
Sets the calendar's colors.
MsgSetCalColors implements the CalColors property by sending a message to the calendar window handle. MsgSetCalColors is an abstract method, and must be overridden in descendant objects to send the appropriate message.
The ColorIndex parameter indicates which of the TMonthCalColors properties is being set. It is one of the following values:
Value | Property |
---|---|
0 |
BackColor |
1 |
TextColor |
2 |
TitleBackColor |
3 |
TitleTextColor |
4 |
MonthBackColor |
5 |
TrailingTextColor |
The ColorValue parameter is the value that should be set.
MsgSetCalColors returns true if the color is set by the method.