RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMonthCalendar.MsgSetDateTime Method

Sets the calendar's current date.

Pascal
function MsgSetDateTime(Value: TSystemTime): Boolean; override;
C++
virtual __fastcall Boolean MsgSetDateTime(TSystemTime Value);

MsgSetCalColors is used to implement the Date property. This protected method sets the calendar's current date using the Windows API call MonthCal_SetCurSel function.  

Value is the date and time to set, expressed as a TSystemTime value. 

MsgSetDateTime returns true if the date is set successfully, false otherwise. 

 

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