Vcl.ComCtrls.TMonthCalendar.MsgSetDateTime

From RAD Studio API Documentation
Jump to: navigation, search

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 TMonthCalendar

Description

Sets the calendar's current date.

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.

See Also