Vcl.ComCtrls.TDateTimePicker.MsgSetDateTime
Delphi
function MsgSetDateTime(Value: TSystemTime): Boolean; override;
C++
virtual bool __fastcall MsgSetDateTime(const _SYSTEMTIME &Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TDateTimePicker |
Description
Sets the calendar's date/time.
Vcl.ComCtrls.TDateTimePicker.MsgSetDateTime inherits from Vcl.ComCtrls.TCommonCalendar.MsgSetDateTime. All content below this line refers to Vcl.ComCtrls.TCommonCalendar.MsgSetDateTime.
Sets the calendar's date/time.
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.