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

TCustomDBListBox

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

TCustomDBListBox - base class for TDBListBox, a data-aware listbox for presenting list information from a database

Declaration

Source position: dbctrls.pp line 335

type TCustomDBListBox = class(TCustomListBox) end;

protected

  FDataLink: TFieldDataLink;

  

FDataLink - local variable holding the identity of the field data link

  procedure DataChange(); virtual; abstract;

  

DataChange - method for dealing with a change in the data

  procedure KeyDown(); override;

  

Invokes the OnKeyDown handler.

  procedure Notification(); override;

  procedure UpdateData(); virtual; abstract;

  

UpdateData - method for applying any pending changes to the data

  procedure SetItems(); override;

  

SetItems - copies the specified Values into the Items property

public

  constructor Create(); override;

  

Create - constructor for TCustomDBListBox: calls inherited Create, makes links and sets up event handlers for data change, change in Editing status and updating data

  destructor Destroy; override;

  

Destroy - destructor for TCustomEBListbox: frees data links then calls inherited Destroy

  function ExecuteAction(); override;

  function UpdateAction(); override;

  property Field: TField; [r]

  

The identity of the Field to which the listbox belongs

  property DataField: string; [rw]

  

The name of the DataField to which the listbox belongs

  property DataSource: TDataSource; [rw]

  

The identity of the DataSource from which the lookup data will be fetched

  property ReadOnly: Boolean; [rw]

  

ReadOnly - if True, the data can only be read but not written or edited

Inheritance

TCustomDBListBox

  

TCustomDBListBox - base class for TDBListBox, a data-aware listbox for presenting list information from a database

|

TCustomListBox

  

The base class for TListBox.

|

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

See also

HowToUseDataAwareControls

  

HowToUseDataAwareControls - Hints for accessing databases

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