API:Vcl.ComCtrls.TDateTimePicker.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

__fastcall virtual TDateTimePicker(System::Classes::TComponent* AOwner);
/* TWinControl.CreateParented */ inline __fastcall TDateTimePicker(HWND ParentWindow) : TCommonCalendar(ParentWindow) { }

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TDateTimePicker

Description

Creates an instance of TCommonCalendar.

Vcl.ComCtrls.TDateTimePicker.Create inherits from Vcl.ComCtrls.TCommonCalendar.Create. All content below this line refers to Vcl.ComCtrls.TCommonCalendar.Create.

Creates an instance of TCommonCalendar.

Call Create to construct and initialize an instance of TCommonCalendar. The AOwner parameter assigns a value to the Owner property, which is responsible for freeing the calendar control.

Create performs the following tasks:

Calls the inherited constructor.

Sets ShowToday and ShowTodayCircle to true.

Sets ControlStyle to [csOpaque, csClickEvents, csDoubleClicks].

Sets DateTime to Now.

Sets FirstDayOfWeek to dowLocaleDefault.

Sets MaxSelectRange to 31.

Sets MonthDelta to 1.

See Also