Class tcustomdataedit

Unit

Declaration

type tcustomdataedit = class(tcustomedit, igridwidget, istatfile, idragcontroller, iassistiveclientgridwidget, iifidatalink)

Description

This item has no description. Showing description inherited from tmsecomponent.

Extends the FPC tcomponent with object linking facilities and the like; base of every MSEgui component. This unit, mseclasses, must be added to uses after classes in code that also uses a third-party unit expecting the plain FPC tcomponent (e.g. TPSScript.Create(TComponent)), since MSEgui forks the FPC classes unit.

Hierarchy

Overview

Fields

Protected fgridintf: iwidgetgrid;
Protected fgriddatalink: pointer;
Protected fdatalist: tdatalist;
Protected fcontrollerintf: idataeditcontroller;
Protected fparentintf: igridwidget;
Protected fifilink: tifivaluelinkcomp;

Methods

Protected function getdefaultifilink: iificlient; override;
Protected function getifidatalinkintf: iifidatalink; override;
Protected function getoptionsedit: optionseditty; override;
Protected procedure dochange; override;
Protected function getifidatatype(): listdatatypety override;
Protected procedure ifisetvalue(var avalue; var accept: boolean);
Protected procedure getifivalue(var avalue) virtual;
Protected procedure setifivalue(const avalue) virtual;
Protected function getifilinkkind: ptypeinfo; virtual;
Protected procedure setifilink(const avalue: tifilinkcomp);
Protected procedure updateifigriddata(const sender: tobject; const alist: tdatalist); virtual;
Protected function getgriddata: tdatalist;
Protected function getvalueprop: ppropinfo;
Protected procedure updatedatalist; virtual;
Protected function geteditstate: dataeditstatesty;
Protected procedure seteditstate(const avalue: dataeditstatesty);
Protected function getgridintf: iwidgetgrid;
Protected procedure checkgrid;
Protected function checkgriddata: tdatalist; overload;
Protected function checkgriddata(var index: integer): tdatalist; overload;
Protected procedure internalgetgridvalue(index: integer; var value);
Protected procedure internalsetgridvalue(index: integer; const Value);
Protected procedure internalfillcol(const value);
Protected procedure internalassigncol(const value);
Protected function getinnerframe: framety; override;
Protected procedure valuechanged; virtual;
Protected procedure dotextchange; virtual;
Protected procedure modified; virtual;
Protected function gettext: msestring override;
Protected function getedittext(): msestring override;
Protected procedure checktext(var atext: msestring; var accept: boolean);
Protected procedure texttovalue(var accept: boolean; const quiet: boolean); virtual; abstract;
Protected procedure texttodata(const atext: msestring; var data); virtual;
Protected function datatotext(const data): msestring;
Protected function internaldatatotext(const data): msestring; virtual; abstract;
Protected procedure valuetotext;
Protected procedure setenabled(const avalue: boolean); override;
Protected procedure dodefocus; override;
Protected procedure dofocus; override;
Protected procedure formatchanged; override;
Protected procedure loaded; override;
Protected procedure fontchanged; override;
Protected procedure dofontheightdelta(var delta: integer); override;
Protected procedure sizechanged; override;
Protected function geteditfont: tfont; override;
Protected class function classskininfo: skininfoty; override;
Protected function setdropdowntext(const avalue: msestring; const docheckvalue: boolean; const canceled: boolean; const akey: keyty): boolean;
Protected procedure initeditfocus;
Protected procedure setifilink0(const avalue: tifilinkcomp);
Protected procedure mouseevent(var info: mouseeventinfoty); override;
Protected procedure dokeydown(var info: keyeventinfoty); override;
Protected procedure internalcreateframe; override;
Protected procedure updatereadonlystate; override;
Protected procedure editnotification(var info: editnotificationinfoty); override;
Protected procedure domousewheelevent(var info: mousewheeleventinfoty); override;
Protected function locatecount: integer; override;
Protected function locatecurrentindex: integer; override;
Protected procedure locatesetcurrentindex(const aindex: integer); override;
Protected function getkeystring(const aindex: integer): msestring; override;
Protected procedure setfirstclick(var ainfo: mouseeventinfoty); virtual;
Protected function createdatalist(const sender: twidgetcol): tdatalist; virtual; abstract;
Protected procedure datalistdestroyed; virtual;
Protected function getdatalistclass: datalistclassty; virtual; abstract;
Protected function getdefaultvalue: pointer; virtual;
Protected function getrowdatapo(const arow: integer): pointer; virtual;
Protected procedure setgridintf(const intf: iwidgetgrid); virtual;
Protected function getcellframe: framety; virtual;
Protected function needscellfocuspaint(): boolean;
Protected function getcellcursor(const arow: integer; const acellzone: cellzonety; const apos: pointty): cursorshapety; virtual;
Protected procedure updatecellzone(const row: integer; const apos: pointty; var result: cellzonety); virtual;
Protected function getnulltext: msestring; virtual;
Protected function getcelltext(const datapo: pointer; out empty: boolean): msestring;
Protected function getiassistiveclient(): iassistiveclient override;
Protected function getassistivecelltext(const arow: int32): msestring;
Protected function getassistiveflags(): assistiveflagsty override;
Protected function getassistivetext(): msestring; override;
Protected function getassistivecolumncaption(): msestring virtual;
Protected procedure drawcell(const canvas: tcanvas); virtual;
Protected procedure updateautocellsize(const canvas: tcanvas); virtual;
Protected procedure beforecelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual;
Protected procedure aftercelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual;
Protected procedure valuetogrid(row: integer); virtual; abstract;
Protected procedure gridtovalue(row: integer); virtual;
Protected procedure setvaluedata(const source); virtual; abstract;
Protected procedure getvaluedata(out dest); virtual; abstract;
Protected procedure docellevent(const ownedcol: boolean; var info: celleventinfoty); virtual;
Protected function sortfunc(const l,r): integer; virtual;
Protected procedure gridvaluechanged(const index: integer); virtual;
Protected procedure updatecoloptions(const aoptions: coloptionsty);
Protected procedure updatecoloptions1(const aoptions: coloptions1ty);
Protected procedure setoptionsedit(const avalue: optionseditty); override;
Protected procedure setoptionsedit1(const avalue: optionsedit1ty); override;
Protected procedure statdataread; virtual;
Protected procedure griddatasourcechanged; virtual;
Protected function getifilink: tifilinkcomp;
Protected procedure setparentgridwidget(const intf: igridwidget);
Protected procedure childdataentered(const sender: igridwidget); virtual;
Protected procedure childfocused(const sender: igridwidget); virtual;
Protected procedure formaterror(const quiet: boolean);
Protected procedure rangeerror(const min,max; const quiet: boolean);
Protected procedure notnullerror(const quiet: boolean);
Protected procedure doafterpaint(const canvas: tcanvas); override;
Protected function needsfocuspaint: boolean; override;
Protected procedure dostatread(const reader: tstatreader); virtual;
Protected procedure dostatwrite(const writer: tstatwriter); virtual;
Protected procedure statreading;
Protected procedure statread;
Protected function getstatvarname: msestring;
Protected function getstatpriority: integer;
Protected procedure readstatvalue(const reader: tstatreader); virtual;
Protected procedure readstatstate(const reader: tstatreader); virtual;
Protected procedure readstatoptions(const reader: tstatreader); virtual;
Protected procedure writestatvalue(const writer: tstatwriter); virtual;
Protected procedure writestatstate(const writer: tstatwriter); virtual;
Protected procedure writestatoptions(const writer: tstatwriter); virtual;
Protected function cangridcopy: boolean; override;
Protected function isempty(const atext: msestring): boolean; virtual;
Protected procedure nullvalueset;
Protected procedure setnullvalue; virtual;
Protected function nullcheckneeded(const newfocus: twidget): boolean; virtual;
Protected function textcellcopy: boolean; virtual;
Protected function getedited: boolean; override;
Protected procedure setedited(const avalue: boolean); virtual;
Public procedure initnewwidget(const ascale: real); override;
Public procedure initgridwidget; virtual;
Public procedure paint(const canvas: tcanvas); override;
Public procedure synctofontheight; override;
Public function actualcolor: colorty; override;
Public function actualcursor(const apos: pointty): cursorshapety; override;
Public function widgetcol: twidgetcol;
Public function grid: tcustomwidgetgrid;
Public function gridrowhigh: int32;
Public function griddatarowhigh: int32;
Public function gridcol: integer;
Public function griddata: tdatalist;
Public function textclipped(const arow: integer; out acellrect: rectty): boolean; virtual;
Public function textclipped(const arow: integer): boolean;
Public function checkvalue(const quiet: boolean = false): boolean; virtual;
Public function canclose(const newfocus: twidget): boolean; override;
Public function emptytext: boolean;
Public function seteditfocus: boolean;
Public function isnull: boolean; virtual;

Properties

Public property gridrow: integer read getgridrow write setgridrow;
Public property gridintf: iwidgetgrid read fgridintf;
Public property edited: boolean read getedited write setedited;
Public property disptext: msestring read getdisptext;
Public property dataeditstate: dataeditstatesty read fstate;
Public property statfile: tstatfile read fstatfile write setstatfile;
Public property statvarname: msestring read getstatvarname write fstatvarname;
Public property statpriority: integer read fstatpriority write fstatpriority default 0;
Public property oncheckvalue: checkvalueeventty read foncheckvalue write foncheckvalue;
Public property ondataentered: notifyeventty read fondataentered write fondataentered;
Public property ongettext: gettexteventty read fongettext write fongettext;
Public property onsettext: settexteventty read fonsettext write fonsettext;
Public property ontextchange: textchangeeventty read fontextchange write fontextchange;

Description

Fields

Protected fgridintf: iwidgetgrid;

This item has no description.

Protected fgriddatalink: pointer;

This item has no description.

Protected fdatalist: tdatalist;

This item has no description.

Protected fcontrollerintf: idataeditcontroller;

This item has no description.

Protected fparentintf: igridwidget;

This item has no description.

Protected fifilink: tifivaluelinkcomp;

This item has no description.

Methods

Protected function getdefaultifilink: iificlient; override;

This item has no description.

Protected function getifidatalinkintf: iifidatalink; override;

This item has no description.

Protected function getoptionsedit: optionseditty; override;

This item has no description.

Protected procedure dochange; override;

This item has no description.

Protected function getifidatatype(): listdatatypety override;

This item has no description.

Protected procedure ifisetvalue(var avalue; var accept: boolean);

This item has no description.

Protected procedure getifivalue(var avalue) virtual;

This item has no description.

Protected procedure setifivalue(const avalue) virtual;

This item has no description.

Protected function getifilinkkind: ptypeinfo; virtual;

This item has no description.

Protected procedure setifilink(const avalue: tifilinkcomp);

This item has no description.

Protected procedure updateifigriddata(const sender: tobject; const alist: tdatalist); virtual;

This item has no description.

Protected function getgriddata: tdatalist;

This item has no description.

Protected function getvalueprop: ppropinfo;

This item has no description.

Protected procedure updatedatalist; virtual;

This item has no description.

Protected function geteditstate: dataeditstatesty;

This item has no description.

Protected procedure seteditstate(const avalue: dataeditstatesty);

This item has no description.

Protected function getgridintf: iwidgetgrid;

This item has no description.

Protected procedure checkgrid;

This item has no description.

Protected function checkgriddata: tdatalist; overload;

This item has no description.

Protected function checkgriddata(var index: integer): tdatalist; overload;

This item has no description.

Protected procedure internalgetgridvalue(index: integer; var value);

This item has no description.

Protected procedure internalsetgridvalue(index: integer; const Value);

This item has no description.

Protected procedure internalfillcol(const value);

This item has no description.

Protected procedure internalassigncol(const value);

This item has no description.

Protected function getinnerframe: framety; override;

This item has no description.

Protected procedure valuechanged; virtual;

This item has no description.

Protected procedure dotextchange; virtual;

This item has no description.

Protected procedure modified; virtual;

This item has no description.

Protected function gettext: msestring override;

This item has no description.

Protected function getedittext(): msestring override;

This item has no description.

Protected procedure checktext(var atext: msestring; var accept: boolean);

This item has no description.

Protected procedure texttovalue(var accept: boolean; const quiet: boolean); virtual; abstract;

This item has no description.

Protected procedure texttodata(const atext: msestring; var data); virtual;

This item has no description.

Protected function datatotext(const data): msestring;

This item has no description.

Protected function internaldatatotext(const data): msestring; virtual; abstract;

This item has no description.

Protected procedure valuetotext;

This item has no description.

Protected procedure setenabled(const avalue: boolean); override;

This item has no description.

Protected procedure dodefocus; override;

This item has no description.

Protected procedure dofocus; override;

This item has no description.

Protected procedure formatchanged; override;

This item has no description.

Protected procedure loaded; override;

This item has no description.

Protected procedure fontchanged; override;

This item has no description.

Protected procedure dofontheightdelta(var delta: integer); override;

This item has no description.

Protected procedure sizechanged; override;

This item has no description.

Protected function geteditfont: tfont; override;

This item has no description.

Protected class function classskininfo: skininfoty; override;

This item has no description.

Protected function setdropdowntext(const avalue: msestring; const docheckvalue: boolean; const canceled: boolean; const akey: keyty): boolean;

This item has no description.

Protected procedure initeditfocus;

This item has no description.

Protected procedure setifilink0(const avalue: tifilinkcomp);

This item has no description.

Protected procedure mouseevent(var info: mouseeventinfoty); override;

This item has no description.

Protected procedure dokeydown(var info: keyeventinfoty); override;

This item has no description.

Protected procedure internalcreateframe; override;

This item has no description.

Protected procedure updatereadonlystate; override;

This item has no description.

Protected procedure editnotification(var info: editnotificationinfoty); override;

This item has no description.

Protected procedure domousewheelevent(var info: mousewheeleventinfoty); override;

This item has no description.

Protected function locatecount: integer; override;

This item has no description.

Protected function locatecurrentindex: integer; override;

This item has no description.

Protected procedure locatesetcurrentindex(const aindex: integer); override;

This item has no description.

Protected function getkeystring(const aindex: integer): msestring; override;

This item has no description.

Protected procedure setfirstclick(var ainfo: mouseeventinfoty); virtual;

This item has no description.

Protected function createdatalist(const sender: twidgetcol): tdatalist; virtual; abstract;

This item has no description.

Protected procedure datalistdestroyed; virtual;

This item has no description.

Protected function getdatalistclass: datalistclassty; virtual; abstract;

This item has no description.

Protected function getdefaultvalue: pointer; virtual;

This item has no description.

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

This item has no description.

Protected procedure setgridintf(const intf: iwidgetgrid); virtual;

This item has no description.

Protected function getcellframe: framety; virtual;

This item has no description.

Protected function needscellfocuspaint(): boolean;

This item has no description.

Protected function getcellcursor(const arow: integer; const acellzone: cellzonety; const apos: pointty): cursorshapety; virtual;

This item has no description.

Protected procedure updatecellzone(const row: integer; const apos: pointty; var result: cellzonety); virtual;

This item has no description.

Protected function getnulltext: msestring; virtual;

This item has no description.

Protected function getcelltext(const datapo: pointer; out empty: boolean): msestring;

This item has no description.

Protected function getiassistiveclient(): iassistiveclient override;

This item has no description.

Protected function getassistivecelltext(const arow: int32): msestring;

This item has no description.

Protected function getassistiveflags(): assistiveflagsty override;

This item has no description.

Protected function getassistivetext(): msestring; override;

This item has no description.

Protected function getassistivecolumncaption(): msestring virtual;

This item has no description.

Protected procedure drawcell(const canvas: tcanvas); virtual;

This item has no description.

Protected procedure updateautocellsize(const canvas: tcanvas); virtual;

This item has no description.

Protected procedure beforecelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual;

This item has no description.

Protected procedure aftercelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual;

This item has no description.

Protected procedure valuetogrid(row: integer); virtual; abstract;

This item has no description.

Protected procedure gridtovalue(row: integer); virtual;

This item has no description.

Protected procedure setvaluedata(const source); virtual; abstract;

This item has no description.

Protected procedure getvaluedata(out dest); virtual; abstract;

This item has no description.

Protected procedure docellevent(const ownedcol: boolean; var info: celleventinfoty); virtual;

This item has no description.

Protected function sortfunc(const l,r): integer; virtual;

This item has no description.

Protected procedure gridvaluechanged(const index: integer); virtual;

This item has no description.

Protected procedure updatecoloptions(const aoptions: coloptionsty);

This item has no description.

Protected procedure updatecoloptions1(const aoptions: coloptions1ty);

This item has no description.

Protected procedure setoptionsedit(const avalue: optionseditty); override;

This item has no description.

Protected procedure setoptionsedit1(const avalue: optionsedit1ty); override;

This item has no description.

Protected procedure statdataread; virtual;

This item has no description.

Protected procedure griddatasourcechanged; virtual;

This item has no description.

Protected function getifilink: tifilinkcomp;

This item has no description.

Protected procedure setparentgridwidget(const intf: igridwidget);

This item has no description.

Protected procedure childdataentered(const sender: igridwidget); virtual;

This item has no description.

Protected procedure childfocused(const sender: igridwidget); virtual;

This item has no description.

Protected procedure formaterror(const quiet: boolean);

This item has no description.

Protected procedure rangeerror(const min,max; const quiet: boolean);

This item has no description.

Protected procedure notnullerror(const quiet: boolean);

This item has no description.

Protected procedure doafterpaint(const canvas: tcanvas); override;

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

Override doafterpaint to draw over the widget's child widgets, after they have painted.

Protected function needsfocuspaint: boolean; override;

This item has no description.

Protected procedure dostatread(const reader: tstatreader); virtual;

This item has no description.

Protected procedure dostatwrite(const writer: tstatwriter); virtual;

This item has no description.

Protected procedure statreading;

This item has no description.

Protected procedure statread;

This item has no description.

Protected function getstatvarname: msestring;

This item has no description.

Protected function getstatpriority: integer;

This item has no description.

Protected procedure readstatvalue(const reader: tstatreader); virtual;

This item has no description.

Protected procedure readstatstate(const reader: tstatreader); virtual;

This item has no description.

Protected procedure readstatoptions(const reader: tstatreader); virtual;

This item has no description.

Protected procedure writestatvalue(const writer: tstatwriter); virtual;

This item has no description.

Protected procedure writestatstate(const writer: tstatwriter); virtual;

This item has no description.

Protected procedure writestatoptions(const writer: tstatwriter); virtual;

This item has no description.

Protected function cangridcopy: boolean; override;

This item has no description.

Protected function isempty(const atext: msestring): boolean; virtual;

This item has no description.

Protected procedure nullvalueset;

This item has no description.

Protected procedure setnullvalue; virtual;

This item has no description.

Protected function nullcheckneeded(const newfocus: twidget): boolean; virtual;

This item has no description.

Protected function textcellcopy: boolean; virtual;

This item has no description.

Protected function getedited: boolean; override;

This item has no description.

Protected procedure setedited(const avalue: boolean); virtual;

This item has no description.

Public procedure initnewwidget(const ascale: real); override;

This item has no description.

Public procedure initgridwidget; virtual;

This item has no description.

Public procedure paint(const canvas: tcanvas); override;

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

invalidate (called automatically, e.g. by setcaption) adds the widget's client area to its window's update region; once the main event queue is empty, the update regions of all windows are painted, widget by widget, bottom-up in z-order, by paint. If the widget's color is not cl_transparent, the area is first filled with that color; then, if active, frame is painted (filling its own client area with colorclient if that is not cl_transparent), then, if active, face; the widget's own content (e.g. a caption) is painted last, on top of that background. When code changes a widget's widgetrect directly rather than through a property that does it automatically, it must invalidate the old widgetrect before the change and the new one after, so both the vacated and the newly covered area get repainted.

Public procedure synctofontheight; override;

This item has no description.

Public function actualcolor: colorty; override;

This item has no description.

Public function actualcursor(const apos: pointty): cursorshapety; override;

This item has no description.

Public function widgetcol: twidgetcol;

This item has no description.

Public function grid: tcustomwidgetgrid;

This item has no description.

Public function gridrowhigh: int32;

This item has no description.

Public function griddatarowhigh: int32;

This item has no description.

Public function gridcol: integer;

This item has no description.

Public function griddata: tdatalist;

This item has no description.

Public function textclipped(const arow: integer; out acellrect: rectty): boolean; virtual;

This item has no description.

Public function textclipped(const arow: integer): boolean;

This item has no description.

Public function checkvalue(const quiet: boolean = false): boolean; virtual;

This item has no description.

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

This item has no description.

Public function emptytext: boolean;

This item has no description.

Public function seteditfocus: boolean;

This item has no description.

Public function isnull: boolean; virtual;

This item has no description.

Properties

Public property gridrow: integer read getgridrow write setgridrow;

This item has no description.

Public property gridintf: iwidgetgrid read fgridintf;

This item has no description.

Public property edited: boolean read getedited write setedited;

This item has no description.

Public property disptext: msestring read getdisptext;

This item has no description.

Public property dataeditstate: dataeditstatesty read fstate;

This item has no description.

Public property statfile: tstatfile read fstatfile write setstatfile;

This item has no description.

Public property statvarname: msestring read getstatvarname write fstatvarname;

This item has no description.

Public property statpriority: integer read fstatpriority write fstatpriority default 0;

This item has no description.

Public property oncheckvalue: checkvalueeventty read foncheckvalue write foncheckvalue;

This item has no description.

Public property ondataentered: notifyeventty read fondataentered write fondataentered;

This item has no description.

Public property ongettext: gettexteventty read fongettext write fongettext;

This item has no description.

Public property onsettext: settexteventty read fonsettext write fonsettext;

This item has no description.

Public property ontextchange: textchangeeventty read fontextchange write fontextchange;

This item has no description.


Generated by PasDoc 1.0.4.