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

TDBDateEdit

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

TDBDateEdit implements a data-aware editing control for a date field in a dataset.

Declaration

Source position: dbextctrls.pp line 30

type TDBDateEdit = class(TDateEdit)

protected

  procedure Notification(); override;

  

Handles notifications when a component is added or removed.

  function EditCanModify; override;

  

Indicates if the control can modify its contents.

  procedure EditEnter; override;

  

Performs actions required when the Enter key is pressed on the control.

  procedure EditKeyDown(); override;

  

Handles special keys in the keydown state.

  procedure EditKeyPress(); override;

  

Ensures character values are valid for the control.

  procedure ButtonClick; override;

  

Actions performed when the button for the control is clicked.

  procedure EditChange; override;

  

Signals the control changed state.

  procedure EditExit; override;

  

Performs actions needed when the exiting the control.

  procedure Reset; override;

  

Restores the control to its value in the dataset.

public

  constructor Create(); override;

  

Constructor for the object instance.

  destructor Destroy; override;

  

Frees the object instance.

  function ExecuteAction(); override;

  

Perform the default action for the control.

  function UpdateAction(); override;

  

Updates the action when it handles the specified operation.

  property Field: TField; [r]

  

TField class which reads and writes data for the control.

published

  property DataField: string; [rw]

  

Name of the field in the dataset.

  property DataSource: TDataSource; [rw]

  

Provides access to the dataset used for the editing control.

end;

Inheritance

TDBDateEdit

  

TDBDateEdit implements a data-aware editing control for a date field in a dataset.

|

TDateEdit

  

Implements a control with an edit box for a date value and an attached speed button to display a date selection (calendar) dialog.

|

TCustomEditButton

  

TCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button.

|

TCustomAbstractGroupedEdit

  

Implements a grouped edit control.

|

TCustomControl

  

The base class for windowed controls which paint themselves.

|

TWinControl

  

Implements a windowed control which can contain other child controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components which have an associated widget.

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

Description

TDBDateEdit is a TDateEdit descendant that implements a data-aware edit control for a Date field in a dataset. Like its ancestor class, TDBDateEdit includes a Button which opens a Date selection dialog (calendar).

TDBDateEdit extends the ancestor class to provide support for TFieldDataLink, TDataSource, and TField which provide access to the dataset with the data for the editing control. Overridden methods are provided which handle keystrokes and synchronize changes in the control with the field in a dataset. Support for TBasicAction is also included in TDBDateEdit.

See also

TDateEdit

  

Implements a control with an edit box for a date value and an attached speed button to display a date selection (calendar) dialog.

TFieldDataLink

  

Maintains an association between a control, an action, and a field in a linked dataset.

TField

TDatasource

TBasicAction


Version 3.2 Generated 2024-02-25 Home