[Overview][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 54

type TCustomCalendar = class(TWinControl)

protected

  procedure LMChanged(); message;

  procedure LMMonthChanged(); message;

  

  procedure LMYearChanged(); message;

  

  procedure LMDayChanged(); message;

  

  function GetControlClassDefaultSize; override;

  

Find the default size for this class of controls (by reference to parents)

  procedure Loaded; override;

  

public

  constructor Create(); override;

  destructor Destroy; override;

  

  procedure InitializeWnd; override;

  

InitializeWnd - initialise the window for this control

  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 ReadOnly: Boolean; [rws]

  

ReadOnly - if True, calendar can only be viewed but not changed

  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

end;

Inheritance

TCustomCalendar

  

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

|

TWinControl

?

TObject