RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDateTimePicker.MsgSetCalColors Method

Sets the calendar's colors.

Pascal
function MsgSetCalColors(ColorIndex: Integer; ColorValue: TColor): Boolean; override;
C++
virtual __fastcall Boolean MsgSetCalColors(int ColorIndex, TColor ColorValue);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!