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

TDBLookupListBox

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

TDBLookupListBox, a data-aware listbox for presenting lookup list information from a database

Declaration

Source position: dbctrls.pp line 445

type TDBLookupListBox = class(TCustomDBListBox)

protected

  procedure DataChange(); override;

  

DataChange - triggered by a change in the data: finds the index of the field containing th changed value

  procedure InitializeWnd; override;

  procedure UpdateData(); override;

  

UpdateData - method for applying any pending changes to the data

public

  constructor Create(); override;

  

Create - constructor for TDBLookupListBox: calls inherited Create then creates lookup and forms linkd

  property KeyValue: Variant; [rw]

published

  property Align;

  

Used to align the control to the top, bottom, left or right of its client.

  property Anchors;

  

The set of anchor definitions for this control

  property BorderSpacing;

  

Determines the border spacing for this control

  property BorderStyle;

  

BorderStyle - none, or single

  property DataField;

  

The name of the DataField to which the listbox belongs

  property DataSource;

  

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

  property DragCursor;

  

DragCursor - the style of cursor to be used during the Drag process

  property DragMode;

  

DragMode - whether manual or automatic

  property KeyField: String; [rw]

  

The KeyField holding the data

  property ListField: String; [rw]

  

The ListField for the data

  property ListFieldIndex: Integer; [rw]

  

ListFieldIndex - the index value for the listfield

  property ListSource: TDataSource; [rw]

  

ListSource - the data source from which the list is obtained

  property LookupCache: Boolean; [rw]

  property NullValueKey: TShortCut; [rw]

  property OnClick;

  

Event Handler for mouse click

  property OnDblClick;

  

Event Handle for mouse double-click

  property OnDragDrop;

  

Event handler for the drop of a control onto this control.

  property OnDragOver;

  

Event handler for the case when a control is dragged over another control

  property OnEditingDone;

  property OnEndDrag;

  

Event handler for the end of a dragging process

  property OnEnter;

  

OnEnter - event handler for when the mouse enters the control, and the control receives focus

  property OnExit;

  

OnExit - event handler for when the mouse leaves the control and it loses focus

  property OnKeyPress;

  

OnKeyPress - event controller for a key being pressed while the control has focus. To properly handle national chars use UTF8KeyPress instead.

  property OnKeyDown;

  

OnKeyDown - event handler for instance when key is down while control has focus

  property OnKeyUp;

  

OnKeyUp - event handler for instance when a key is up (not pressed) while the control has focus

  property OnMouseMove;

  

Event handler for mouse movement within the current control

  property OnMouseDown;

  

Event handler for when a mouse button is pressed down

  property OnMouseUp;

  

Event handler for when the mouse button is released, ie "up"

  property OnResize;

  

Event Handler for resize of control

  property OnStartDrag;

  

Event handler for start of dragging operation

  property OnUTF8KeyPress;

  

UTF8KeyPress - event controller for a key being pressed while the control has focus.

  property ParentShowHint;

  

ParentShowHint - does the control adopt the same hinting behaviour as its parent? Default is true

  property PopupMenu;

  

PopupMenu - a context-sensitive menu that pops up when the right mouse button is clicked over this control

  property ReadOnly;

  

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

  property ShowHint;

  

Flag to determine: Is hint to be displayed for this control?

  property Sorted;

  

Sorted - whether the selected Items in the list have been arranged in alphabetical order

  property TabOrder;

  

The place this control occupies in the list of tabs

  property TabStop;

  

Is the control in the sequence of controls accessed by successive presses of the Tab key?

  property TopIndex;

  

Topindex - the highest value of Index in this list

  property Visible;

  

Visible - can the control be seen?

end;

Inheritance

TDBLookupListBox

  

TDBLookupListBox, a data-aware listbox for presenting lookup list information from a database

|

TCustomDBListBox

  

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

|

TCustomListBox

  

TCustomList Box : the base class for TListBox

|

TWinControl

|

TControl

|

TLCLComponent

  

TLCLComponent - base class for LCL components

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

TObject

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