[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 766

type TDBCalendar = class(TCalendar)

  FDataLink: TFieldDataLink;

  

  procedure DataChange();

  

  procedure UpdateData();

  

  procedure FocusRequest();

  

  function GetDataField;

  

  function GetDataSource;

  

  function GetField;

  

  function GetReadOnly;

  

  procedure SetReadOnly();

  

  procedure SetDate();

  

  procedure SetDataField();

  

  procedure SetDataSource();

  

  procedure UpdateDate();

  procedure CMGetDataLink(); message;

protected

  procedure Loaded; override;

  

  procedure Notification(); override;

  

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  procedure EditingDone; override;

  

  property Field: TField; [r]

  

published

  property BorderSpacing;

  property DataField: String; [rw]

  

  property DataSource: TDataSource; [rw]

  

  property Date; [ws]

  

  property ReadOnly: Boolean; [rw]

  

  property DisplaySettings; [s]

  

  property DragCursor;

  property DragMode;

  property Visible;

  

  property OnClick;

  

  property OnDragDrop;

  property OnDragOver;

  property OnEndDrag;

  property OnMouseMove;

  

  property OnMouseDown;

  

  property OnDayChanged;

  

  property OnMonthChanged;

  

  property OnStartDrag;

  property OnYearChanged;

  

end;

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

?

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