[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Calendar' (#lcl)

TCustomCalendar

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCustomCalendar - base class for TCalendar, a graphic for selecting a date

Declaration

Source position: calendar.pp line 72

type TCustomCalendar = class(TWinControl) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure LMChanged(); message;

  

LMChanged - LCL Message method to deal with changes in the control

  procedure LMMonthChanged(); message;

  

LMMonthChanged - LCL Message method for change in Month

  procedure LMYearChanged(); message;

  

LMYearChanged - LCL Message method for change in Year

  procedure LMDayChanged(); message;

  

LMDayChanged - LCL Message method for change in Day

  class function GetControlClassDefaultSize; override;

  

Returns the default size for this class of controls (when added to a form).

  procedure Loaded; override;

  

  procedure InitializeWnd; override;

  

Copies cached control properties to the just created widget.

  procedure DestroyWnd; override;

public

  constructor Create(); override;

  

Create - constructor for TCustomCalendar: calls inherited Create and sets style, initial bounds, display settings; sets date and time to Now

  function HitTest();

  function GetCalendarView;

  property Date: string; [rws]

  

The value of Date returned by the control

  property DateTime: TDateTime; [rw]

  

The composite DateTime value returned by the control

  property DisplaySettings: TDisplaySettings; [rw]

  

DisplaySettings - various options governing the appearance of the display

  property OnChange: TNotifyEvent; [rw]

  

OnChange - event handler for any change in Calendar

  property OnDayChanged: TNotifyEvent; [rw]

  

OnDayChanged - event handler for a change in Day selected

  property OnMonthChanged: TNotifyEvent; [rw]

  

OnMonthChanged - event handler for a change in month selected

  property OnYearChanged: TNotifyEvent; [rw]

  

OnYearChanged - event handler for a change in the year selected

Inheritance

TCustomCalendar

  

TCustomCalendar - base class for TCalendar, a graphic for selecting a date

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.