Vcl.ComCtrls.TCommonCalendar.Create
Delphi
constructor Create(AOwner: TComponent); override;
C++
__fastcall virtual TCommonCalendar(System::Classes::TComponent* AOwner);
/* TWinControl.CreateParented */ inline __fastcall TCommonCalendar(HWND ParentWindow) : Vcl::Controls::TWinControl(ParentWindow) { }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCommonCalendar |
Description
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.