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

TDBCalendar

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

TDBCalendar - a data-aware version of TCalendar, for selecting a date to put in a database field

Declaration

Source position: dbctrls.pp line 1115

type TDBCalendar = class(TCalendar) end;

protected

  procedure Notification(); override;

  

public

  constructor Create(); override;

  

Create - constructor for TDBCalendar: calls inherited Create and forms datalinks and actions

  destructor Destroy; override;

  

Destroy - destructor for TDBCalendar: frees datalinks and calls inherited Destroy

  procedure EditingDone; override;

  

EditingDone - changes data over the link then calls inherited EditingDone

  function ExecuteAction(); override;

  function UpdateAction(); override;

  property Field: TField; [r]

  

The Field to which the calendar is attached

published

  property BorderSpacing: TControlBorderSpacing;

  

Determines the inner and outer border spacing for this control.

  property DataField: string; [rw]

  

The name of the DataField as a string

  property DataSource: TDataSource; [rw]

  

The identity of the DataSource holding the date information

  property Date: string; [ws]

  

The Date obtained from the Calendar

  property ReadOnly: Boolean; [rw]

  

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

  property DisplaySettings: TDisplaySettings; [s]

  

DisplaySettings - various options governing the appearance of the display

  property DragCursor: TCursor;

  

The cursor shape shown while the control is dragged.

  property DragMode: TDragMode;

  

Allows the user to drag the control.

  property Visible: Boolean;

  

Allows to show or hide the control, and all of its children.

  property OnClick: TNotifyEvent;

  

Notification handler for mouse clicks.

  property OnDragDrop: TDragDropEvent;

  

This handler determines the action on an drop onto this control, in a drag-drop operation.

  property OnDragOver: TDragOverEvent;

  

Event handler for a control being dragged over this control.

  property OnEndDrag: TEndDragEvent;

  

Notification handler for the end of a dragging operation.

  property OnMouseMove: TMouseMoveEvent;

  

Event handler for mouse movement within the control.

  property OnMouseDown: TMouseEvent;

  

Event handler for mouse button going down.

  property OnDayChanged: TNotifyEvent;

  

OnDayChanged - event handler for a change in Day selected

  property OnMonthChanged: TNotifyEvent;

  

OnMonthChanged - event handler for a change in month selected

  property OnStartDrag: TStartDragEvent;

  

Event handler for the start of a dragging operation.

  property OnYearChanged: TNotifyEvent;

  

OnYearChanged - event handler for a change in the year selected

Inheritance

TDBCalendar

  

TDBCalendar - a data-aware version of TCalendar, for selecting a date to put in a database field

|

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

  

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

Description

A pop-up calendar appears, and the user can navigate through years, months and days to select the date that is required. When a date is selected, it is inserted into the Date field of the appropriate record in the database.

See also

HowToUseDataAwareControls

  

HowToUseDataAwareControls - Hints for accessing databases

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