Class tdbdataimage

Unit

Declaration

type tdbdataimage = class(tcustomdataimage, idbgraphicfieldlink, ireccontrol, iifidatalink)

Description

Displays and edits the actual image data stored in the bound (blob) field, decoding it via the registered graphic format units (e.g. mseformatpng, mseformatjpg — add the ones you need to your uses clause). Set tmsegraphicfield.imagecachekb on the field when used in a tdbwidgetgrid column, to avoid redecoding on every repaint; for a small, fixed set of icons selected by an integer field instead, tdbdataicon performs much better.

Hierarchy

Overview

Methods

Protected procedure griddatasourcechanged; override;
Protected procedure loadcellbmp(const acanvas: tcanvas; const abmp: tmaskedbitmap); override;
Protected function getrowdatapo(const arow: integer): pointer; override;
Protected function createdatalist(const sender: twidgetcol): tdatalist; override;
Protected procedure defineproperties(filer: tfiler); override;
Protected procedure setvalue(const avalue: string); override;
Protected procedure gridtovalue(row: integer); override;
Protected procedure doshortcut(var info: keyeventinfoty; const sender: twidget); override;
Public constructor create(aowner: tcomponent); override;
Public destructor destroy; override;

Properties

Published property datalink: tgraphicdatalink read fdatalink write setdatalink;
Published property format;
Published property onbeforepaint;
Published property onpaintbackground;
Published property onpaint;
Published property onafterpaint;

Description

Methods

Protected procedure griddatasourcechanged; override;

This item has no description.

Protected procedure loadcellbmp(const acanvas: tcanvas; const abmp: tmaskedbitmap); override;

This item has no description.

Protected function getrowdatapo(const arow: integer): pointer; override;

This item has no description.

Protected function createdatalist(const sender: twidgetcol): tdatalist; override;

This item has no description.

Protected procedure defineproperties(filer: tfiler); override;

This item has no description.

Protected procedure setvalue(const avalue: string); override;

This item has no description.

Protected procedure gridtovalue(row: integer); 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.

Public constructor create(aowner: tcomponent); override;

This item has no description.

Public destructor destroy; override;

This item has no description.

Properties

Published property datalink: tgraphicdatalink read fdatalink write setdatalink;

This item has no description.

Published property format;

This item has no description.

Published property onbeforepaint;

This item has no description.

Published property onpaintbackground;

This item has no description.

Published property onpaint;

This item has no description.

Published property onafterpaint;

This item has no description.


Generated by PasDoc 1.0.4.