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

TCustomDBComboBox

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

TCustomDBComboBox - a Data-aware Combo Box for displaying information from a Database

Declaration

Source position: dbctrls.pp line 674

type TCustomDBComboBox = class(TCustomComboBox) end;

protected

  procedure DataChange(); virtual; abstract;

  

DataChange - updates any changes in text

  procedure Notification(); override;

  procedure Change; override;

  

Change -if there has been a change to the data the link must be notified, then inherited Change is called

  procedure UpdateData(); virtual; abstract;

  

UpdateData - implements any pending changes in the data

  procedure WndProc(); override;

public

  constructor Create(); override;

  destructor Destroy; override;

  function ExecuteAction(); override;

  function UpdateAction(); override;

  procedure EditingDone; override;

  

Invokes the OnEditingDone event handler.

  property Field: TField; [r]

  

The Field to which this combobox is attached

  property Text: TCaption;

  

The string appearing in the edit box.

  property ItemIndex: Integer;

  

The index of the currently selected item, -1 if none is selected.

  property DataField: string; [rw]

  

The name (as a string) of the Feild whose data are to be linked to the ComboBox

  property DataSource: TDataSource; [rw]

  

The identity of the DataSource to which the ComboBox is attached

  property ReadOnly: Boolean; [rw]

  

Disallows entry of free text.

Inheritance

TCustomDBComboBox

  

TCustomDBComboBox - a Data-aware Combo Box for displaying information from a Database

|

TCustomComboBox

  

The base class for ComboBox components.

|

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.