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

# TCalendar

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

TCalendar - a graphic allowing the user to select a date which is returned as data to the calling routine

## Declaration

Source position: calendar.pp line 107

`type TCalendar = class(TCustomCalendar)`
`protected`
`procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`published`
`property Align;` |  | Used to align the control to the top, bottom, left or right of its client.
`property Anchors;` |  | The set of anchor definitions for this control
`property AutoSize;`
`property BorderSpacing;` |  | Determines the border spacing for this control
`property Constraints;` |  | Determine Constraints (max and min height and width) for this control
`property Date;` |  | The value of Date returned by the control
`property DateTime;` |  | The composite DateTime value returned by the control
`property DisplaySettings;` |  | DisplaySettings - various options governing the appearance of the display
`property OnChange;` |  | OnChange - event handler for any change in Calendar
`property OnChangeBounds;` |  | Event handler for a change in bounds of the control
`property OnClick;` |  | Event Handler for mouse click
`property OnDayChanged;` |  | OnDayChanged - event handler for a change in Day selected
`property OnDblClick;` |  | Event Handle for mouse double-click
`property OnEnter;` |  | OnEnter - event handler for when the mouse enters the control, and the control receives focus
`property OnExit;` |  | OnExit - event handler for when the mouse leaves the control and it loses focus
`property OnKeyDown;` |  | OnKeyDown - event handler for instance when key is down while control has focus
`property OnKeyPress;` |  | OnKeyPress - event controller for a key being pressed while the control has focus. To properly handle national chars use UTF8KeyPress instead.
`property OnKeyUp;` |  | OnKeyUp - event handler for instance when a key is up (not pressed) while the control has focus
`property OnMonthChanged;` |  | OnMonthChanged - event handler for a change in month selected
`property OnMouseDown;` |  | Event handler for when a mouse button is pressed down
`property OnMouseEnter;` |  | Event handler for when the mouse enters the area of the current control
`property OnMouseLeave;` |  | Event handler for when the mouse leaves the area of the current control
`property OnMouseMove;` |  | Event handler for mouse movement within the current control
`property OnMouseUp;` |  | Event handler for when the mouse button is released, ie "up"
`property OnResize;` |  | Event Handler for resize of control
`property OnUTF8KeyPress;` |  | UTF8KeyPress - event controller for a key being pressed while the control has focus.
`property OnYearChanged;` |  | OnYearChanged - event handler for a change in the year selected
`property PopupMenu;` |  | PopupMenu - a context-sensitive menu that pops up when the right mouse button is clicked over this control
`property ShowHint;`
`property TabStop;` |  | Is the control in the sequence of controls accessed by successive presses of the Tab key?
`property Visible;` |  | Visible - can the control be seen?
`end;`

## Inheritance

`TCalendar` |  | TCalendar - a graphic allowing the user to select a date which is returned as data to the calling routine
`TCustomCalendar` |  | TCustomCalendar - base class for TCalendar, a graphic for selecting a date
`TWinControl`
?
`TObject`

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