Class tcustomtextedit

Unit

Declaration

type tcustomtextedit = class(tcustomedit, igridwidget, istatfile, iassistiveclientgridwidget)

Description

No description available, ancestor tcustomedit description follows
No description available, ancestor tpublishedwidget description follows
No description available, ancestor tpublishedwidgetnwr description follows
No description available, ancestor tactionpublishedwidgetnwr description follows
No description available, ancestor tactionwidget description follows
No description available, ancestor twidget description follows
No description available, ancestor tactcomponent description follows
No description available, ancestor tmsecomponent description follows

Hierarchy

Overview

Fields

Protected ftextstate: texteditstatesty;
Protected fgridintf: iwidgetgrid;
Protected fupdating: integer;
Protected fnotificationchangelock: integer;
Protected ffilename: filenamety;
Protected ffilerights: filerightsty;
Protected flines: tgridrichstringdatalist;
Protected ffoundeolstyle: eolstylety;

Methods

Protected procedure setoptionsedit(const avalue: optionseditty); override;
Protected procedure setoptionsedit1(const avalue: optionsedit1ty); override;
Protected function beforechange: boolean;
Protected procedure fontchanged; override;
Protected procedure tabulatorschanged(const sender: tarrayprop; const index: integer);
Protected procedure painttext(const canvas: tcanvas); override;
Protected procedure dobeforepaintforeground(const canvas: tcanvas); override;
Protected procedure dokeydown(var info: keyeventinfoty); override;
Protected procedure getstate(out state: texteditstatety); virtual;
Protected procedure setstate(const state: texteditstatety); virtual;
Protected procedure setfilename(value: filenamety);
Protected procedure insertlinebreak; virtual;
Protected procedure editnotification(var info: editnotificationinfoty); override;
Protected procedure updateindex(select: boolean);
Protected procedure textinserted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual;
Protected procedure textdeleted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual;
Protected procedure dotextmouseevent(var info: textmouseeventinfoty);
Protected procedure dosetupeditor();
Protected procedure setupeditor; override;
Protected procedure dofontheightdelta(var delta: integer); override;
Protected procedure sizechanged; override;
Protected function getinnerframe: framety; override;
Protected function textclipped(const arow: integer; out acellrect: rectty): boolean; virtual;
Protected function textclipped(const arow: integer): boolean;
Protected function getiassistiveclient(): iassistiveclient override;
Protected function getassistivecolumncaption(): msestring virtual;
Protected procedure setfirstclick(var ainfo: mouseeventinfoty);
Protected function createdatalist(const sender: twidgetcol): tdatalist; virtual;
Protected procedure datalistdestroyed;
Protected function getdatalistclass: datalistclassty; virtual;
Protected function getinitvalue: pointer;
Protected function getdefaultvalue: pointer;
Protected function getrowdatapo(const arow: integer): pointer; virtual;
Protected procedure setgridintf(const intf: iwidgetgrid);
Protected function getgridintf: iwidgetgrid;
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;
Protected procedure drawcell(const canvas: tcanvas);
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 initgridwidget;
Protected procedure valuetogrid(row: integer);
Protected procedure gridtovalue(row: integer);
Protected procedure setvaluedata(const source); virtual;
Protected procedure getvaluedata(out dest); virtual;
Protected procedure docellevent(const ownedcol: boolean; var info: celleventinfoty); virtual;
Protected function sortfunc(const l,r): integer;
Protected procedure gridvaluechanged(const index: integer); virtual;
Protected procedure updatecoloptions(const aoptions: coloptionsty);
Protected procedure updatecoloptions1(const aoptions: coloptions1ty);
Protected procedure statdataread; virtual;
Protected procedure griddatasourcechanged;
Protected function getifilink: tifilinkcomp;
Protected procedure dochange; override;
Protected procedure setparentgridwidget(const intf: igridwidget);
Protected procedure childdataentered(const sender: igridwidget); virtual;
Protected procedure childfocused(const sender: igridwidget); virtual;
Protected procedure dostatread(const reader: tstatreader);
Protected procedure dostatwrite(const writer: tstatwriter);
Protected procedure statreading;
Protected procedure statread;
Protected function getstatvarname: msestring;
Protected function getstatpriority: integer;
Protected procedure checkgrid;
Protected procedure setedpos(const Value: gridcoordty; const select: boolean; const donotify: boolean; const ashowcell: cellpositionty);
Protected procedure internalclearselection;
Protected procedure internaldeletetext(const start, stop: gridcoordty; const userinput: boolean);
Protected function getassistivetext(): msestring; override;
Protected function getassistiveflags: assistiveflagsty; override;
Protected function getassistivecelltext(const arow: int32): msestring;
Public constructor create(aowner: tcomponent); override;
Public destructor destroy; override;
Public procedure createtabulators;
Public function actualcolor: colorty; override;
Public procedure synctofontheight; override;
Public procedure reloadfile(restorestate: boolean = true);
Public procedure loadfromstream(const stream: ttextstream; restorestate: boolean = false);
Public procedure loadfromfile(afilename: filenamety; restorestate: boolean = false); virtual;
Public procedure savetostream(const stream: ttextstream; const resetmodified: boolean);
Public procedure savetofile(const afilename: filenamety = '');
Public procedure beginupdate; virtual;
Public procedure endupdate; virtual;
Public procedure clear; virtual;
Public procedure seteditpos(const Value: gridcoordty; const select: boolean = false; const ashowcell: cellpositionty = cep_nearest);
Public procedure inserttext(const apos: gridcoordty; const atext: msestring; out aendpos: gridcoordty; selected: boolean = false; insertbackwards: boolean = false); overload;
Public procedure inserttext(const apos: gridcoordty; const atext: msestring; selected: boolean = false; insertbackwards: boolean = false); overload;
Public procedure inserttext(const atext: msestring; selected: boolean = false); overload;
Public procedure deletetext(const start,stop: gridcoordty);
Public function appendrow(const atext: msestring): integer; overload;
Public function appendrow(const atext: richstringty): integer; overload;
Public function hasselection: boolean; override;
Public function selectedtext: msestring;
Public function selectedrichtext: richstringty;
Public procedure getselectedrows(out start,stop: integer);
Public procedure setfontstyle(const start,stop: gridcoordty; const astyle: fontstylety; const aset: boolean; const afontcolor: colorty = cl_default; const acolorbackground: colorty = cl_default);
Public procedure setselection(const start,stop: gridcoordty; const aseteditpos: boolean = false; const ashowcell: cellpositionty = cep_nearest);
Public procedure clearselection;
Public procedure copyselection;
Public procedure cutselection;
Public function canpaste: boolean;
Public procedure paste;
Public procedure deleteselection;
Public procedure selectall;
Public function find(const atext: msestring; options: searchoptionsty; var textpos: gridcoordty; const endpos: gridcoordty; selectfound: boolean = false; const ashowcell: cellpositionty = cep_nearest): boolean;
Public function gettext(const start, stop: gridcoordty): msestring overload reintroduce;
Public function gettext: msestring overload reintroduce;
Public procedure settext(const atext: msestring) reintroduce;
Public function getrichtext(const start, stop: gridcoordty): richstringty;
Public function getcellframe: framety; virtual;
Public function linecount: integer;
Public function mousepostotextpos(const mousepos: pointty; out textpos: gridcoordty; widgetorg: boolean = false): boolean;
Public function textpostomousepos(const textpos: gridcoordty; const screenorg: boolean = false): pointty;
Public function textpostomouserect(const textpos: gridcoordty; const screenorg: boolean = false): rectty;

Properties

Public property filename: filenamety read ffilename;
Public property filerights: filerightsty read ffilerights write ffilerights;
Public property optionsedit default defaulttexteditoptions;
Public property selectstart: gridcoordty read fselectstart;
Public property selectend: gridcoordty read fselectend;
Public property gridvalue[constindex:integer]: msestring read getgridvalue write setgridvalue;
Public property gridvalues: msestringarty read getgridvalues write setgridvalues;
Public property richlines[constindex:integer]: richstringty read getrichlines write setrichlines;
Public property richformats[constindex:integer]: formatinfoarty read getrichformats write setrichformats;
Public property datalist: tgridrichstringdatalist read flines write setdatalist;
Public property editpos: gridcoordty read geteditpos write seteditpos1;
Public property row: integer read getrow write setrow;
Public property col: integer read getcol write setcol;
Public property modified: boolean read fmodified write setmodified;
Public property encoding: charencodingty read fencoding write fencoding default ce_locale;
Public property eolstyle: eolstylety read feolstyle write feolstyle default eol_default;
Public property options: texteditoptionsty read foptions write setoptions default [];
Public property textflags default defaulttextflags - [tf_noselect];
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 tabulators: ttabulators read gettabulators write settabulators;
Public property marginlinepos: integer read fmarginlinepos write setmarginlinepos default 0;
Public property marginlinecolor: colorty read fmarginlinecolor write setmarginlinecolor default cl_none;
Public property onfontchanged: notifyeventty read fonfontchanged write fonfontchanged;
Public property onmodifiedchanged: booleanchangedeventty read fonmodifiedchanged write fonmodifiedchanged;
Public property ontextmouseevent: textmouseeventty read fontextmouseevent write fontextmouseevent;
Public property oneditnotifcation: editnotificationeventty read foneditnotification write foneditnotification;
Public property ondrawtext: textdraweventty read fondrawtext write fondrawtext;
Public property onsetupeditor: setupeditoreventty read fonsetupeditor write fonsetupeditor;
Public property oncellevent: celleventty read foncellevent write foncellevent;
Published property optionswidget default defaulttexteditwidgetoptions;
Published property optionswidget1 default defaulttexteditwidgetoptions1;

Description

Fields

Protected ftextstate: texteditstatesty;
 
Protected fgridintf: iwidgetgrid;
 
Protected fupdating: integer;
 
Protected fnotificationchangelock: integer;
 
Protected ffilename: filenamety;
 
Protected ffilerights: filerightsty;
 
Protected flines: tgridrichstringdatalist;
 
Protected ffoundeolstyle: eolstylety;
 

Methods

Protected procedure setoptionsedit(const avalue: optionseditty); override;
 
Protected procedure setoptionsedit1(const avalue: optionsedit1ty); override;
 
Protected function beforechange: boolean;
 
Protected procedure fontchanged; override;
 
Protected procedure tabulatorschanged(const sender: tarrayprop; const index: integer);
 
Protected procedure painttext(const canvas: tcanvas); override;
 
Protected procedure dobeforepaintforeground(const canvas: tcanvas); override;
 
Protected procedure dokeydown(var info: keyeventinfoty); override;
 
Protected procedure getstate(out state: texteditstatety); virtual;
 
Protected procedure setstate(const state: texteditstatety); virtual;
 
Protected procedure setfilename(value: filenamety);
 
Protected procedure insertlinebreak; virtual;
 
Protected procedure editnotification(var info: editnotificationinfoty); override;
 
Protected procedure updateindex(select: boolean);
 
Protected procedure textinserted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual;
 
Protected procedure textdeleted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual;
 
Protected procedure dotextmouseevent(var info: textmouseeventinfoty);
 
Protected procedure dosetupeditor();
 
Protected procedure setupeditor; override;
 
Protected procedure dofontheightdelta(var delta: integer); override;
 
Protected procedure sizechanged; override;
 
Protected function getinnerframe: framety; override;
 
Protected function textclipped(const arow: integer; out acellrect: rectty): boolean; virtual;
 
Protected function textclipped(const arow: integer): boolean;
 
Protected function getiassistiveclient(): iassistiveclient override;
 
Protected function getassistivecolumncaption(): msestring virtual;
 
Protected procedure setfirstclick(var ainfo: mouseeventinfoty);
 
Protected function createdatalist(const sender: twidgetcol): tdatalist; virtual;
 
Protected procedure datalistdestroyed;
 
Protected function getdatalistclass: datalistclassty; virtual;
 
Protected function getinitvalue: pointer;
 
Protected function getdefaultvalue: pointer;
 
Protected function getrowdatapo(const arow: integer): pointer; virtual;
 
Protected procedure setgridintf(const intf: iwidgetgrid);
 
Protected function getgridintf: iwidgetgrid;
 
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;
 
Protected procedure drawcell(const canvas: tcanvas);
 
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 initgridwidget;
 
Protected procedure valuetogrid(row: integer);
 
Protected procedure gridtovalue(row: integer);
 
Protected procedure setvaluedata(const source); virtual;
 
Protected procedure getvaluedata(out dest); virtual;
 
Protected procedure docellevent(const ownedcol: boolean; var info: celleventinfoty); virtual;
 
Protected function sortfunc(const l,r): integer;
 
Protected procedure gridvaluechanged(const index: integer); virtual;
 
Protected procedure updatecoloptions(const aoptions: coloptionsty);
 
Protected procedure updatecoloptions1(const aoptions: coloptions1ty);
 
Protected procedure statdataread; virtual;
 
Protected procedure griddatasourcechanged;
 
Protected function getifilink: tifilinkcomp;
 
Protected procedure dochange; override;
 
Protected procedure setparentgridwidget(const intf: igridwidget);
 
Protected procedure childdataentered(const sender: igridwidget); virtual;
 
Protected procedure childfocused(const sender: igridwidget); virtual;
 
Protected procedure dostatread(const reader: tstatreader);
 
Protected procedure dostatwrite(const writer: tstatwriter);
 
Protected procedure statreading;
 
Protected procedure statread;
 
Protected function getstatvarname: msestring;
 
Protected function getstatpriority: integer;
 
Protected procedure checkgrid;
 
Protected procedure setedpos(const Value: gridcoordty; const select: boolean; const donotify: boolean; const ashowcell: cellpositionty);
 
Protected procedure internalclearselection;
 
Protected procedure internaldeletetext(const start, stop: gridcoordty; const userinput: boolean);
 
Protected function getassistivetext(): msestring; override;
 
Protected function getassistiveflags: assistiveflagsty; override;
 
Protected function getassistivecelltext(const arow: int32): msestring;
 
Public constructor create(aowner: tcomponent); override;
 
Public destructor destroy; override;
 
Public procedure createtabulators;
 
Public function actualcolor: colorty; override;
 
Public procedure synctofontheight; override;
 
Public procedure reloadfile(restorestate: boolean = true);
 
Public procedure loadfromstream(const stream: ttextstream; restorestate: boolean = false);
 
Public procedure loadfromfile(afilename: filenamety; restorestate: boolean = false); virtual;
 
Public procedure savetostream(const stream: ttextstream; const resetmodified: boolean);
 
Public procedure savetofile(const afilename: filenamety = '');
 
Public procedure beginupdate; virtual;
 
Public procedure endupdate; virtual;
 
Public procedure clear; virtual;
 
Public procedure seteditpos(const Value: gridcoordty; const select: boolean = false; const ashowcell: cellpositionty = cep_nearest);
 
Public procedure inserttext(const apos: gridcoordty; const atext: msestring; out aendpos: gridcoordty; selected: boolean = false; insertbackwards: boolean = false); overload;
 
Public procedure inserttext(const apos: gridcoordty; const atext: msestring; selected: boolean = false; insertbackwards: boolean = false); overload;
 
Public procedure inserttext(const atext: msestring; selected: boolean = false); overload;
 
Public procedure deletetext(const start,stop: gridcoordty);
 
Public function appendrow(const atext: msestring): integer; overload;
 
Public function appendrow(const atext: richstringty): integer; overload;
 
Public function hasselection: boolean; override;
 
Public function selectedtext: msestring;
 
Public function selectedrichtext: richstringty;
 
Public procedure getselectedrows(out start,stop: integer);
 
Public procedure setfontstyle(const start,stop: gridcoordty; const astyle: fontstylety; const aset: boolean; const afontcolor: colorty = cl_default; const acolorbackground: colorty = cl_default);
 
Public procedure setselection(const start,stop: gridcoordty; const aseteditpos: boolean = false; const ashowcell: cellpositionty = cep_nearest);
 
Public procedure clearselection;
 
Public procedure copyselection;
 
Public procedure cutselection;
 
Public function canpaste: boolean;
 
Public procedure paste;
 
Public procedure deleteselection;
 
Public procedure selectall;
 
Public function find(const atext: msestring; options: searchoptionsty; var textpos: gridcoordty; const endpos: gridcoordty; selectfound: boolean = false; const ashowcell: cellpositionty = cep_nearest): boolean;
 
Public function gettext(const start, stop: gridcoordty): msestring overload reintroduce;
 
Public function gettext: msestring overload reintroduce;
 
Public procedure settext(const atext: msestring) reintroduce;
 
Public function getrichtext(const start, stop: gridcoordty): richstringty;
 
Public function getcellframe: framety; virtual;
 
Public function linecount: integer;
 
Public function mousepostotextpos(const mousepos: pointty; out textpos: gridcoordty; widgetorg: boolean = false): boolean;
 
Public function textpostomousepos(const textpos: gridcoordty; const screenorg: boolean = false): pointty;
 
Public function textpostomouserect(const textpos: gridcoordty; const screenorg: boolean = false): rectty;
 

Properties

Public property filename: filenamety read ffilename;
 
Public property filerights: filerightsty read ffilerights write ffilerights;
 
Public property optionsedit default defaulttexteditoptions;
 
Public property selectstart: gridcoordty read fselectstart;
 
Public property selectend: gridcoordty read fselectend;
 
Public property gridvalue[constindex:integer]: msestring read getgridvalue write setgridvalue;
 
Public property gridvalues: msestringarty read getgridvalues write setgridvalues;
 
Public property richlines[constindex:integer]: richstringty read getrichlines write setrichlines;
 
Public property richformats[constindex:integer]: formatinfoarty read getrichformats write setrichformats;
 
Public property datalist: tgridrichstringdatalist read flines write setdatalist;
 
Public property editpos: gridcoordty read geteditpos write seteditpos1;
 
Public property row: integer read getrow write setrow;
 
Public property col: integer read getcol write setcol;
 
Public property modified: boolean read fmodified write setmodified;
 
Public property encoding: charencodingty read fencoding write fencoding default ce_locale;
 
Public property eolstyle: eolstylety read feolstyle write feolstyle default eol_default;
 
Public property options: texteditoptionsty read foptions write setoptions default [];
 
Public property textflags default defaulttextflags - [tf_noselect];
 
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 tabulators: ttabulators read gettabulators write settabulators;
 
Public property marginlinepos: integer read fmarginlinepos write setmarginlinepos default 0;
 
Public property marginlinecolor: colorty read fmarginlinecolor write setmarginlinecolor default cl_none;
 
Public property onfontchanged: notifyeventty read fonfontchanged write fonfontchanged;
 
Public property onmodifiedchanged: booleanchangedeventty read fonmodifiedchanged write fonmodifiedchanged;
 
Public property ontextmouseevent: textmouseeventty read fontextmouseevent write fontextmouseevent;
 
Public property oneditnotifcation: editnotificationeventty read foneditnotification write foneditnotification;
 
Public property ondrawtext: textdraweventty read fondrawtext write fondrawtext;
 
Public property onsetupeditor: setupeditoreventty read fonsetupeditor write fonsetupeditor;
 
Public property oncellevent: celleventty read foncellevent write foncellevent;
 
Published property optionswidget default defaulttexteditwidgetoptions;
 
Published property optionswidget1 default defaulttexteditwidgetoptions1;
 

Generated by PasDoc 0.16.0.