Class tcustomdbwidgetgrid

Unit

Declaration

type tcustomdbwidgetgrid = class(tcustomwidgetgrid, igriddatalink)

Description

The grid has no data buffer of its own: every row is read directly from the bound dataset through datalink, so walking rows means scrolling the dataset, not iterating some local cache.

Hierarchy

Overview

Methods

Protected function getassistiveflags(): assistiveflagsty override;
Protected function createdatacols: tdatacols; override;
Protected procedure createdatacol(const index: integer; out item: tdatacol); override;
Protected function canautoappend: boolean; override;
Protected function getgriddatalink: pointer; override;
Protected procedure setoptionsgrid(const avalue: optionsgridty); override;
Protected function getfieldlink(const acol: integer): tcustomeditwidgetdatalink;
Protected function updatesortcol(const avalue: integer): integer; override;
Protected procedure internalcreateframe; override;
Protected function createfixcols: tfixcols; override;
Protected procedure dolayoutchanged; override;
Protected procedure docellevent(var info: celleventinfoty); override;
Protected procedure scrollevent(sender: tcustomscrollbar; event: scrolleventty); override;
Protected function getzebrastart: integer; override;
Protected function getnumoffset: integer; override;
Protected procedure dopaint(const acanvas: tcanvas); override;
Protected procedure dohide; override;
Protected procedure loaded; override;
Protected procedure doshortcut(var info: keyeventinfoty; const sender: twidget); override;
Protected procedure setselected(const cell: gridcoordty; const avalue: boolean); override;
Protected procedure doinsertrow(const sender: tobject); override;
Protected procedure doappendrow(const sender: tobject); override;
Protected procedure dodeleterow(const sender: tobject); override;
Protected procedure beforefocuscell(const cell: gridcoordty; const selectaction: focuscellactionty); override;
Protected function caninsertrow: boolean; override;
Protected function canappendrow: boolean; override;
Protected function candeleterow: boolean; override;
Protected function isfirstrow: boolean; override;
Protected function islastrow: boolean; override;
Protected procedure defineproperties(filer: tfiler); override;
Protected function getdbindicatorcol: integer;
Protected procedure setnavigator(const avalue: tdbnavigator);
Public constructor create(aowner: tcomponent); override;
Public destructor destroy; override;
Public function focuscell(cell: gridcoordty; selectaction: focuscellactionty = fca_focusin; const selectmode: selectcellmodety = scm_cell; const ashowcell: cellpositionty = cep_nearest): boolean; override;
Public function canclose(const newfocus: twidget): boolean; override;
Public procedure rowup(const action: focuscellactionty = fca_focusin; const nowrap: boolean = false); override;
Public procedure rowdown(const action: focuscellactionty = fca_focusin; const nowrap: boolean = false); override;
Public procedure pageup(const action: focuscellactionty = fca_focusin); override;
Public procedure pagedown(const action: focuscellactionty = fca_focusin); override;
Public procedure wheelup(const action: focuscellactionty = fca_focusin); override;
Public procedure wheeldown(const action: focuscellactionty = fca_focusin); override;
Public procedure lastrow(const action: focuscellactionty = fca_focusin); override;
Public procedure firstrow(const action: focuscellactionty = fca_focusin); override;

Properties

Public property datalink: tgriddatalink read fdatalink write setdatalink;
Public property zebra_step default 0;
Public property fixcols: tdbwidgetfixcols read getfixcols write setfixcols;
Public property datacols: tdbwidgetcols read getdatacols write setdatacols;

Description

Methods

Protected function getassistiveflags(): assistiveflagsty override;

This item has no description.

Protected function createdatacols: tdatacols; override;

This item has no description.

Protected procedure createdatacol(const index: integer; out item: tdatacol); override;

This item has no description.

Protected function canautoappend: boolean; override;

This item has no description.

Protected function getgriddatalink: pointer; override;

This item has no description.

Protected procedure setoptionsgrid(const avalue: optionsgridty); override;

This item has no description.

Protected function getfieldlink(const acol: integer): tcustomeditwidgetdatalink;

This item has no description.

Protected function updatesortcol(const avalue: integer): integer; override;

This item has no description.

Protected procedure internalcreateframe; override;

This item has no description.

Protected function createfixcols: tfixcols; override;

This item has no description.

Protected procedure dolayoutchanged; override;

This item has no description.

Protected procedure docellevent(var info: celleventinfoty); override;

This item has no description.

Protected procedure scrollevent(sender: tcustomscrollbar; event: scrolleventty); override;

This item has no description.

Protected function getzebrastart: integer; override;

This item has no description.

Protected function getnumoffset: integer; override;

This item has no description.

Protected procedure dopaint(const acanvas: tcanvas); override;

This item has no description. Showing description inherited from twidget.dopaint.

Override dopaint in a widget descendant to implement custom drawing for that widget class, instead of using the onpaint event (meant for occasional per-instance drawing on top of the standard rendering). Most widgets can already be customized without overriding anything, through their frame and face properties (see tframetemplate/tfacetemplate to centralize such customizations).

Protected procedure dohide; override;

This item has no description.

Protected procedure loaded; override;

This item has no description.

Protected procedure doshortcut(var info: keyeventinfoty; const sender: twidget); override;

This item has no description. Showing description inherited from twidget.doshortcut.

Simplified key event propagation: an unhandled key first goes through dokeydown of the focused widget, then of its parents (dokeydown of the parent is called with es_child set). If still unhandled, doshortcut is tried: siblings and children first, then (unless ow_nochildshortcut is set) the parent widget — a widget with ow_noparentshortcut ignores a call coming from its parent. If no widget handled it, the window's own doshortcut first checks tcustomactions with ao_localshortcut set whose owner is an ancestor of the widget that received the key; if still unhandled and tws_localshortcuts is not set on the window, application.checkshortcut calls doshortcut of all windows, and then of all actions with ao_globalshortcut set. Finally, unhandled navigation keys are processed by dokeydownaftershortcut, again propagated to parents. Recursion is avoided by always calling top-down.

Protected procedure setselected(const cell: gridcoordty; const avalue: boolean); override;

This item has no description.

Protected procedure doinsertrow(const sender: tobject); override;

This item has no description.

Protected procedure doappendrow(const sender: tobject); override;

This item has no description.

Protected procedure dodeleterow(const sender: tobject); override;

This item has no description.

Protected procedure beforefocuscell(const cell: gridcoordty; const selectaction: focuscellactionty); override;

This item has no description.

Protected function caninsertrow: boolean; override;

This item has no description.

Protected function canappendrow: boolean; override;

This item has no description.

Protected function candeleterow: boolean; override;

This item has no description.

Protected function isfirstrow: boolean; override;

This item has no description.

Protected function islastrow: boolean; override;

This item has no description.

Protected procedure defineproperties(filer: tfiler); override;

This item has no description.

Protected function getdbindicatorcol: integer;

This item has no description.

Protected procedure setnavigator(const avalue: tdbnavigator);

This item has no description.

Public constructor create(aowner: tcomponent); override;

This item has no description.

Public destructor destroy; override;

This item has no description.

Public function focuscell(cell: gridcoordty; selectaction: focuscellactionty = fca_focusin; const selectmode: selectcellmodety = scm_cell; const ashowcell: cellpositionty = cep_nearest): boolean; override;

This item has no description.

Public function canclose(const newfocus: twidget): boolean; override;

This item has no description.

Public procedure rowup(const action: focuscellactionty = fca_focusin; const nowrap: boolean = false); override;

This item has no description.

Public procedure rowdown(const action: focuscellactionty = fca_focusin; const nowrap: boolean = false); override;

This item has no description.

Public procedure pageup(const action: focuscellactionty = fca_focusin); override;

This item has no description.

Public procedure pagedown(const action: focuscellactionty = fca_focusin); override;

This item has no description.

Public procedure wheelup(const action: focuscellactionty = fca_focusin); override;

This item has no description.

Public procedure wheeldown(const action: focuscellactionty = fca_focusin); override;

This item has no description.

Public procedure lastrow(const action: focuscellactionty = fca_focusin); override;

This item has no description.

Public procedure firstrow(const action: focuscellactionty = fca_focusin); override;

This item has no description.

Properties

Public property datalink: tgriddatalink read fdatalink write setdatalink;

This item has no description.

Public property zebra_step default 0;

This item has no description.

Public property fixcols: tdbwidgetfixcols read getfixcols write setfixcols;

This item has no description.

Public property datacols: tdbwidgetcols read getdatacols write setdatacols;

This item has no description.


Generated by PasDoc 1.0.4.