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

TDBListBox

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

TDBListBox - a data-aware version of TListBox, for displaying lists of entries from a field in a database

Declaration

Source position: dbctrls.pp line 371

type TDBListBox = class(TCustomDBListBox) end;

protected

  procedure DataChange(); override;

  

DataChange - method for dealing with a change in the data

  procedure DoSelectionChange(); override;

  procedure UpdateData(); override;

  

UpdateData - method for applying any pending changes to the data

public

  procedure EditingDone; override;

  

EditingDone - what to do when you have finished editing

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 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 ExtendedSelect: Boolean;

  

True when a contiguous range of items can be selected by a SHIFT-click. Default True.

  property ItemHeight: Integer;

  

The default height of all items.

  property Items: TStrings;

  

Items - the data that form the list in the box

  property MultiSelect: Boolean;

  

Allows to select more than one Item from the list, using CTRL-click.

  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 OnDrawItem: TDrawItemEvent;

  

Handler for special painting of an item (in owner-draw mode).

  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 ReadOnly: Boolean;

  

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

  property ShowHint: Boolean;

  

Enables the Hint display.

  property Sorted: Boolean;

  

Determines whether the list entries are sorted.

  property Style: TListBoxStyle;

  

Appearance of the ListBox - normal, owner-draw fixed, or owner-draw variable.

  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

TDBListBox

  

TDBListBox - a data-aware version of TListBox, for displaying lists of entries from a field in 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

See also

HowToUseDataAwareControls

  

HowToUseDataAwareControls - Hints for accessing databases

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