RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDateTimePicker.MsgSetDateTime Method

Sets the calendar's date/time.

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

MsgSetDateTime implements the DateTime property by sending a message to the calendar window handle. MsgSetDateTime is an abstract method, and must be overridden in descendant objects to send the appropriate message. 

The Value parameter indicates the value of DateTime as a TSystemTime value. This can be obtained from the DateTime property value by calling DateTimeToSystemTime. 

MsgSetDateTime returns true if the date/time value is set by the method. 

 

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