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

TDBNavigator

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

TDBNavigator - a data-aware Button-Bar to facilitate navigating between records of a dataset

Declaration

Source position: dbctrls.pp line 964

type TDBNavigator = class(TDBCustomNavigator)

published

  property Align;

  

  property Alignment;

  

  property Anchors;

  

  property AutoSize;

  

  property BeforeAction;

  

  property BevelInner;

  

  property BevelOuter;

  

  property BevelWidth;

  

  property BorderSpacing;

  property BorderStyle;

  

  property BorderWidth;

  

  property Caption;

  

  property ClientHeight;

  

  property ClientWidth;

  

  property Color;

  

  property ConfirmDelete;

  

  property DataSource;

  

  property Direction;

  

  property DragCursor;

  property DragMode;

  

  property Enabled;

  

  property Flat;

  

  property Font;

  

  property Hints;

  

  property OnClick;

  

  property OnDblClick;

  

  property OnDragDrop;

  

  property OnDragOver;

  

  property OnEndDrag;

  

  property OnEnter;

  

  property OnExit;

  

  property OnMouseDown;

  

  property OnMouseMove;

  

  property OnMouseUp;

  

  property OnResize;

  

  property OnStartDrag;

  

  property ParentColor;

  

  property ParentFont;

  

  property ParentShowHint;

  

  property PopupMenu;

  

  property ShowHint;

  

  property TabOrder;

  

  property TabStop;

  

  property Visible;

  

  property VisibleButtons;

  

end;

Inheritance

TDBNavigator

  

TDBNavigator - a data-aware Button-Bar to facilitate navigating between records of a dataset

|

TDBCustomNavigator

  

TDBCustomNavigator - the base class for TDBNavigator, a tool for navigating through the records of a dataset

|

TCustomPanel

?

TObject

Description

TDBNavigator is an advanced tool for navigating through datasets held locally in response to a query sent to the database.

It consists of a series of toolbuttons to move to the First, Prior, Next or Last record; to Insert or Delete a record; to Edit a record (enter Edit mode), to Post the changes. to Cancel the changes, and to Refresh the display from the database.

The programmer may determine, at design time, which buttons are to be displayed or suppressed by adjusting the VisibleButtons property in the Object Inspector.

If used in conjunction with a DataAware control such as TDBGrid or TDBMemo it controls which records are displayed , the position of the record selection cursor, and the initiation of changes to the dataset and ultimately the database.

Most of the functionality of the toolbar is already built-in to the control, but if the programmer needs to specify actions to be associated with individual buttons, there is a procedure TDBCustomNavigator.BtnClick to which an argument can be sent with the Index value of the button clicked, and the procedure chooses which action to call dependent on the button index.

The DataSource property must be set to link to the appropriate set of data.

See also

HowToUseDataAwareControls

  

HowToUseDataAwareControls - Hints for accessing databases