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

type TDBLookupListBox = class(TCustomDBListBox) end;

protected

  procedure DataChange(); override;

  

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

  procedure DoSelectionChange(); override;

  procedure InitializeWnd; override;

  procedure DestroyWnd; override;

  procedure KeyDown(); override;

  procedure Loaded; 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: TAlign;

  

Specifies the placement of the control inside its Parent.

  property Anchors: TAnchors;

  

The set of anchor definitions for this control.

  property BiDiMode: TBiDiMode;

  property BorderSpacing: TControlBorderSpacing;

  

Determines the inner and outer border spacing for this control.

  property BorderStyle: TBorderStyle;

  

Allows to show a border (line) around the control,

  property Color: TColor;

  property DataField: string;

  

The name of the DataField to which the listbox belongs

  property DataSource: TDataSource;

  

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

  property DragCursor: TCursor;

  

The cursor shape shown while the control is dragged.

  property DragMode: TDragMode;

  

Allows the user to drag the control.

  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: TNotifyEvent;

  

Notification handler for mouse clicks.

  property OnDblClick: TNotifyEvent;

  

Event Handler for double mouse clicks.

  property OnDragDrop: TDragDropEvent;

  

This handler determines the action on an drop onto this control, in a drag-drop operation.

  property OnDragOver: TDragOverEvent;

  

Event handler for a control being dragged over this control.

  property OnEditingDone: TNotifyEvent;

  property OnEndDrag: TEndDragEvent;

  

Notification handler for the end of a dragging operation.

  property OnEnter: TNotifyEvent;

  

Handler for control receiving the focus.

  property OnExit: TNotifyEvent;

  

Handler for control loosing the focus. This is a good place for checking the finished user input.

  property OnKeyPress: TKeyPressEvent;

  

Handler for a character entered by the user.

  property OnKeyDown: TKeyEvent;

  

Handler for keyboard key pressed.

  property OnKeyUp: TKeyEvent;

  

Handler for keyboard key released.

  property OnMouseDown: TMouseEvent;

  

Event handler for mouse button going down.

  property OnMouseEnter: TNotifyEvent;

  property OnMouseLeave: TNotifyEvent;

  property OnMouseMove: TMouseMoveEvent;

  

Event handler for mouse movement within the control.

  property OnMouseUp: TMouseEvent;

  

Event handler for mouse button going up.

  property OnMouseWheel: TMouseWheelEvent;

  property OnMouseWheelDown: TMouseWheelUpDownEvent;

  property OnMouseWheelUp: TMouseWheelUpDownEvent;

  property OnResize: TNotifyEvent;

  

Notification handler for a resize of the control.

  property OnStartDrag: TStartDragEvent;

  

Event handler for the start of a dragging operation.

  property OnUTF8KeyPress: TUTF8KeyPressEvent;

  

Handler for a character entered by the user.

  property ParentBiDiMode: Boolean;

  property ParentShowHint: Boolean;

  

If true, the value of ShowHint for the control will be the same as the one from the Parent. Default is true.

  property PopupMenu: TPopupMenu;

  

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

  property ReadOnly: Boolean;

  

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

  property ScrollListDataset: Boolean; [rw]

  property ShowHint: Boolean;

  

Enables the Hint display.

  property Sorted: Boolean;

  

Determines whether the list entries are sorted.

  property TabOrder: TTabOrder;

  

Determines the sequence of controls, reachable when the user presses the Tab key.

  property TabStop: Boolean;

  

Allows the user to navigate to this control, by pressing the Tab key.

  property TopIndex: Integer;

  

Index of the first visible (topmost) item.

  property Visible: Boolean;

  

Allows to show or hide the control, and all of its children.

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

  

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

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