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
- TObject
- TPersistent
- tcomponent
- tmsecomponent
- tactcomponent
- twidget
- tactionwidget
- tactionpublishedwidgetnwr
- tpublishedwidgetnwr
- tpublishedwidget
- tcustomedit
- tcustomtextedit
Overview
Fields
ftextstate: texteditstatesty; |
|
fgridintf: iwidgetgrid; |
|
fupdating: integer; |
|
fnotificationchangelock: integer; |
|
ffilename: filenamety; |
|
ffilerights: filerightsty; |
|
flines: tgridrichstringdatalist; |
|
ffoundeolstyle: eolstylety; |
Methods
procedure setoptionsedit(const avalue: optionseditty); override; |
|
procedure setoptionsedit1(const avalue: optionsedit1ty); override; |
|
function beforechange: boolean; |
|
procedure fontchanged; override; |
|
procedure tabulatorschanged(const sender: tarrayprop; const index: integer); |
|
procedure painttext(const canvas: tcanvas); override; |
|
procedure dobeforepaintforeground(const canvas: tcanvas); override; |
|
procedure dokeydown(var info: keyeventinfoty); override; |
|
procedure getstate(out state: texteditstatety); virtual; |
|
procedure setstate(const state: texteditstatety); virtual; |
|
procedure setfilename(value: filenamety); |
|
procedure insertlinebreak; virtual; |
|
procedure editnotification(var info: editnotificationinfoty); override; |
|
procedure updateindex(select: boolean); |
|
procedure textinserted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual; |
|
procedure textdeleted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual; |
|
procedure dotextmouseevent(var info: textmouseeventinfoty); |
|
procedure dosetupeditor(); |
|
procedure setupeditor; override; |
|
procedure dofontheightdelta(var delta: integer); override; |
|
procedure sizechanged; override; |
|
function getinnerframe: framety; override; |
|
function textclipped(const arow: integer; out acellrect: rectty): boolean; virtual; |
|
function textclipped(const arow: integer): boolean; |
|
function getiassistiveclient(): iassistiveclient override; |
|
function getassistivecolumncaption(): msestring virtual; |
|
procedure setfirstclick(var ainfo: mouseeventinfoty); |
|
function createdatalist(const sender: twidgetcol): tdatalist; virtual; |
|
procedure datalistdestroyed; |
|
function getdatalistclass: datalistclassty; virtual; |
|
function getinitvalue: pointer; |
|
function getdefaultvalue: pointer; |
|
function getrowdatapo(const arow: integer): pointer; virtual; |
|
procedure setgridintf(const intf: iwidgetgrid); |
|
function getgridintf: iwidgetgrid; |
|
function needscellfocuspaint(): boolean; |
|
function getcellcursor(const arow: integer; const acellzone: cellzonety; const apos: pointty): cursorshapety; virtual; |
|
procedure updatecellzone(const row: integer; const apos: pointty; var result: cellzonety); virtual; |
|
function getnulltext: msestring; |
|
procedure drawcell(const canvas: tcanvas); |
|
procedure updateautocellsize(const canvas: tcanvas); virtual; |
|
procedure beforecelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual; |
|
procedure aftercelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual; |
|
procedure initgridwidget; |
|
procedure valuetogrid(row: integer); |
|
procedure gridtovalue(row: integer); |
|
procedure setvaluedata(const source); virtual; |
|
procedure getvaluedata(out dest); virtual; |
|
procedure docellevent(const ownedcol: boolean; var info: celleventinfoty); virtual; |
|
function sortfunc(const l,r): integer; |
|
procedure gridvaluechanged(const index: integer); virtual; |
|
procedure updatecoloptions(const aoptions: coloptionsty); |
|
procedure updatecoloptions1(const aoptions: coloptions1ty); |
|
procedure statdataread; virtual; |
|
procedure griddatasourcechanged; |
|
function getifilink: tifilinkcomp; |
|
procedure dochange; override; |
|
procedure setparentgridwidget(const intf: igridwidget); |
|
procedure childdataentered(const sender: igridwidget); virtual; |
|
procedure childfocused(const sender: igridwidget); virtual; |
|
procedure dostatread(const reader: tstatreader); |
|
procedure dostatwrite(const writer: tstatwriter); |
|
procedure statreading; |
|
procedure statread; |
|
function getstatvarname: msestring; |
|
function getstatpriority: integer; |
|
procedure checkgrid; |
|
procedure setedpos(const Value: gridcoordty; const select: boolean; const donotify: boolean; const ashowcell: cellpositionty); |
|
procedure internalclearselection; |
|
procedure internaldeletetext(const start, stop: gridcoordty; const userinput: boolean); |
|
function getassistivetext(): msestring; override; |
|
function getassistiveflags: assistiveflagsty; override; |
|
function getassistivecelltext(const arow: int32): msestring; |
|
constructor create(aowner: tcomponent); override; |
|
destructor destroy; override; |
|
procedure createtabulators; |
|
function actualcolor: colorty; override; |
|
procedure synctofontheight; override; |
|
procedure reloadfile(restorestate: boolean = true); |
|
procedure loadfromstream(const stream: ttextstream; restorestate: boolean = false); |
|
procedure loadfromfile(afilename: filenamety; restorestate: boolean = false); virtual; |
|
procedure savetostream(const stream: ttextstream; const resetmodified: boolean); |
|
procedure savetofile(const afilename: filenamety = ''); |
|
procedure beginupdate; virtual; |
|
procedure endupdate; virtual; |
|
procedure clear; virtual; |
|
procedure seteditpos(const Value: gridcoordty; const select: boolean = false; const ashowcell: cellpositionty = cep_nearest); |
|
procedure inserttext(const apos: gridcoordty; const atext: msestring; out aendpos: gridcoordty; selected: boolean = false; insertbackwards: boolean = false); overload; |
|
procedure inserttext(const apos: gridcoordty; const atext: msestring; selected: boolean = false; insertbackwards: boolean = false); overload; |
|
procedure inserttext(const atext: msestring; selected: boolean = false); overload; |
|
procedure deletetext(const start,stop: gridcoordty); |
|
function appendrow(const atext: msestring): integer; overload; |
|
function appendrow(const atext: richstringty): integer; overload; |
|
function hasselection: boolean; override; |
|
function selectedtext: msestring; |
|
function selectedrichtext: richstringty; |
|
procedure getselectedrows(out start,stop: integer); |
|
procedure setfontstyle(const start,stop: gridcoordty; const astyle: fontstylety; const aset: boolean; const afontcolor: colorty = cl_default; const acolorbackground: colorty = cl_default); |
|
procedure setselection(const start,stop: gridcoordty; const aseteditpos: boolean = false; const ashowcell: cellpositionty = cep_nearest); |
|
procedure clearselection; |
|
procedure copyselection; |
|
procedure cutselection; |
|
function canpaste: boolean; |
|
procedure paste; |
|
procedure deleteselection; |
|
procedure selectall; |
|
function find(const atext: msestring; options: searchoptionsty; var textpos: gridcoordty; const endpos: gridcoordty; selectfound: boolean = false; const ashowcell: cellpositionty = cep_nearest): boolean; |
|
function gettext(const start, stop: gridcoordty): msestring overload reintroduce; |
|
function gettext: msestring overload reintroduce; |
|
procedure settext(const atext: msestring) reintroduce; |
|
function getrichtext(const start, stop: gridcoordty): richstringty; |
|
function getcellframe: framety; virtual; |
|
function linecount: integer; |
|
function mousepostotextpos(const mousepos: pointty; out textpos: gridcoordty; widgetorg: boolean = false): boolean; |
|
function textpostomousepos(const textpos: gridcoordty; const screenorg: boolean = false): pointty; |
|
function textpostomouserect(const textpos: gridcoordty; const screenorg: boolean = false): rectty; |
Properties
property filename: filenamety read ffilename; |
|
property filerights: filerightsty read ffilerights write ffilerights; |
|
property optionsedit default defaulttexteditoptions; |
|
property selectstart: gridcoordty read fselectstart; |
|
property selectend: gridcoordty read fselectend; |
|
property gridvalue[constindex:integer]: msestring
read getgridvalue write setgridvalue; |
|
property gridvalues: msestringarty read getgridvalues write setgridvalues; |
|
property richlines[constindex:integer]: richstringty
read getrichlines write setrichlines; |
|
property richformats[constindex:integer]: formatinfoarty
read getrichformats write setrichformats; |
|
property datalist: tgridrichstringdatalist read flines write setdatalist; |
|
property editpos: gridcoordty read geteditpos write seteditpos1; |
|
property row: integer read getrow write setrow; |
|
property col: integer read getcol write setcol; |
|
property modified: boolean read fmodified write setmodified; |
|
property encoding: charencodingty read fencoding write fencoding
default ce_locale; |
|
property eolstyle: eolstylety read feolstyle write feolstyle
default eol_default; |
|
property options: texteditoptionsty read foptions write setoptions
default []; |
|
property textflags default defaulttextflags - [tf_noselect]; |
|
property statfile: tstatfile read fstatfile write setstatfile; |
|
property statvarname: msestring read getstatvarname write fstatvarname; |
|
property statpriority: integer read fstatpriority
write fstatpriority default 0; |
|
property tabulators: ttabulators read gettabulators write settabulators; |
|
property marginlinepos: integer read fmarginlinepos
write setmarginlinepos default 0; |
|
property marginlinecolor: colorty read fmarginlinecolor
write setmarginlinecolor default cl_none; |
|
property onfontchanged: notifyeventty read fonfontchanged
write fonfontchanged; |
|
property onmodifiedchanged: booleanchangedeventty read fonmodifiedchanged
write fonmodifiedchanged; |
|
property ontextmouseevent: textmouseeventty read fontextmouseevent
write fontextmouseevent; |
|
property oneditnotifcation: editnotificationeventty read foneditnotification
write foneditnotification; |
|
property ondrawtext: textdraweventty read fondrawtext write fondrawtext; |
|
property onsetupeditor: setupeditoreventty read fonsetupeditor
write fonsetupeditor; |
|
property oncellevent: celleventty read foncellevent write foncellevent; |
|
property optionswidget default defaulttexteditwidgetoptions; |
|
property optionswidget1 default defaulttexteditwidgetoptions1; |
Description
Fields
ftextstate: texteditstatesty; |
|
fgridintf: iwidgetgrid; |
|
fupdating: integer; |
|
fnotificationchangelock: integer; |
|
ffilename: filenamety; |
|
ffilerights: filerightsty; |
|
flines: tgridrichstringdatalist; |
|
ffoundeolstyle: eolstylety; |
|
Methods
procedure setoptionsedit(const avalue: optionseditty); override; |
|
procedure setoptionsedit1(const avalue: optionsedit1ty); override; |
|
function beforechange: boolean; |
|
procedure fontchanged; override; |
|
procedure tabulatorschanged(const sender: tarrayprop; const index: integer); |
|
procedure painttext(const canvas: tcanvas); override; |
|
procedure dobeforepaintforeground(const canvas: tcanvas); override; |
|
procedure dokeydown(var info: keyeventinfoty); override; |
|
procedure getstate(out state: texteditstatety); virtual; |
|
procedure setstate(const state: texteditstatety); virtual; |
|
procedure setfilename(value: filenamety); |
|
procedure insertlinebreak; virtual; |
|
procedure editnotification(var info: editnotificationinfoty); override; |
|
procedure updateindex(select: boolean); |
|
procedure textinserted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual; |
|
procedure textdeleted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual; |
|
procedure dotextmouseevent(var info: textmouseeventinfoty); |
|
procedure dosetupeditor(); |
|
procedure setupeditor; override; |
|
procedure dofontheightdelta(var delta: integer); override; |
|
procedure sizechanged; override; |
|
function getinnerframe: framety; override; |
|
function textclipped(const arow: integer; out acellrect: rectty): boolean; virtual; |
|
function textclipped(const arow: integer): boolean; |
|
function getiassistiveclient(): iassistiveclient override; |
|
function getassistivecolumncaption(): msestring virtual; |
|
procedure setfirstclick(var ainfo: mouseeventinfoty); |
|
function createdatalist(const sender: twidgetcol): tdatalist; virtual; |
|
procedure datalistdestroyed; |
|
function getdatalistclass: datalistclassty; virtual; |
|
function getinitvalue: pointer; |
|
function getdefaultvalue: pointer; |
|
function getrowdatapo(const arow: integer): pointer; virtual; |
|
procedure setgridintf(const intf: iwidgetgrid); |
|
function getgridintf: iwidgetgrid; |
|
function needscellfocuspaint(): boolean; |
|
function getcellcursor(const arow: integer; const acellzone: cellzonety; const apos: pointty): cursorshapety; virtual; |
|
procedure updatecellzone(const row: integer; const apos: pointty; var result: cellzonety); virtual; |
|
function getnulltext: msestring; |
|
procedure drawcell(const canvas: tcanvas); |
|
procedure updateautocellsize(const canvas: tcanvas); virtual; |
|
procedure beforecelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual; |
|
procedure aftercelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual; |
|
procedure initgridwidget; |
|
procedure valuetogrid(row: integer); |
|
procedure gridtovalue(row: integer); |
|
procedure setvaluedata(const source); virtual; |
|
procedure getvaluedata(out dest); virtual; |
|
procedure docellevent(const ownedcol: boolean; var info: celleventinfoty); virtual; |
|
function sortfunc(const l,r): integer; |
|
procedure gridvaluechanged(const index: integer); virtual; |
|
procedure updatecoloptions(const aoptions: coloptionsty); |
|
procedure updatecoloptions1(const aoptions: coloptions1ty); |
|
procedure statdataread; virtual; |
|
procedure griddatasourcechanged; |
|
function getifilink: tifilinkcomp; |
|
procedure dochange; override; |
|
procedure setparentgridwidget(const intf: igridwidget); |
|
procedure childdataentered(const sender: igridwidget); virtual; |
|
procedure childfocused(const sender: igridwidget); virtual; |
|
procedure dostatread(const reader: tstatreader); |
|
procedure dostatwrite(const writer: tstatwriter); |
|
procedure statreading; |
|
procedure statread; |
|
function getstatvarname: msestring; |
|
function getstatpriority: integer; |
|
procedure checkgrid; |
|
procedure setedpos(const Value: gridcoordty; const select: boolean; const donotify: boolean; const ashowcell: cellpositionty); |
|
procedure internalclearselection; |
|
procedure internaldeletetext(const start, stop: gridcoordty; const userinput: boolean); |
|
function getassistivetext(): msestring; override; |
|
function getassistiveflags: assistiveflagsty; override; |
|
function getassistivecelltext(const arow: int32): msestring; |
|
constructor create(aowner: tcomponent); override; |
|
destructor destroy; override; |
|
procedure createtabulators; |
|
function actualcolor: colorty; override; |
|
procedure synctofontheight; override; |
|
procedure reloadfile(restorestate: boolean = true); |
|
procedure loadfromstream(const stream: ttextstream; restorestate: boolean = false); |
|
procedure loadfromfile(afilename: filenamety; restorestate: boolean = false); virtual; |
|
procedure savetostream(const stream: ttextstream; const resetmodified: boolean); |
|
procedure savetofile(const afilename: filenamety = ''); |
|
procedure beginupdate; virtual; |
|
procedure endupdate; virtual; |
|
procedure clear; virtual; |
|
procedure seteditpos(const Value: gridcoordty; const select: boolean = false; const ashowcell: cellpositionty = cep_nearest); |
|
procedure inserttext(const apos: gridcoordty; const atext: msestring; out aendpos: gridcoordty; selected: boolean = false; insertbackwards: boolean = false); overload; |
|
procedure inserttext(const apos: gridcoordty; const atext: msestring; selected: boolean = false; insertbackwards: boolean = false); overload; |
|
procedure inserttext(const atext: msestring; selected: boolean = false); overload; |
|
procedure deletetext(const start,stop: gridcoordty); |
|
function appendrow(const atext: msestring): integer; overload; |
|
function appendrow(const atext: richstringty): integer; overload; |
|
function hasselection: boolean; override; |
|
function selectedtext: msestring; |
|
function selectedrichtext: richstringty; |
|
procedure getselectedrows(out start,stop: integer); |
|
procedure setfontstyle(const start,stop: gridcoordty; const astyle: fontstylety; const aset: boolean; const afontcolor: colorty = cl_default; const acolorbackground: colorty = cl_default); |
|
procedure setselection(const start,stop: gridcoordty; const aseteditpos: boolean = false; const ashowcell: cellpositionty = cep_nearest); |
|
procedure clearselection; |
|
procedure copyselection; |
|
procedure cutselection; |
|
function canpaste: boolean; |
|
procedure paste; |
|
procedure deleteselection; |
|
procedure selectall; |
|
function find(const atext: msestring; options: searchoptionsty; var textpos: gridcoordty; const endpos: gridcoordty; selectfound: boolean = false; const ashowcell: cellpositionty = cep_nearest): boolean; |
|
function gettext(const start, stop: gridcoordty): msestring overload reintroduce; |
|
function gettext: msestring overload reintroduce; |
|
procedure settext(const atext: msestring) reintroduce; |
|
function getrichtext(const start, stop: gridcoordty): richstringty; |
|
function getcellframe: framety; virtual; |
|
function linecount: integer; |
|
function mousepostotextpos(const mousepos: pointty; out textpos: gridcoordty; widgetorg: boolean = false): boolean; |
|
function textpostomousepos(const textpos: gridcoordty; const screenorg: boolean = false): pointty; |
|
function textpostomouserect(const textpos: gridcoordty; const screenorg: boolean = false): rectty; |
|
Properties
property filename: filenamety read ffilename; |
|
property filerights: filerightsty read ffilerights write ffilerights; |
|
property optionsedit default defaulttexteditoptions; |
|
property selectstart: gridcoordty read fselectstart; |
|
property selectend: gridcoordty read fselectend; |
|
property gridvalue[constindex:integer]: msestring
read getgridvalue write setgridvalue; |
|
property gridvalues: msestringarty read getgridvalues write setgridvalues; |
|
property richlines[constindex:integer]: richstringty
read getrichlines write setrichlines; |
|
property richformats[constindex:integer]: formatinfoarty
read getrichformats write setrichformats; |
|
property datalist: tgridrichstringdatalist read flines write setdatalist; |
|
property editpos: gridcoordty read geteditpos write seteditpos1; |
|
property row: integer read getrow write setrow; |
|
property col: integer read getcol write setcol; |
|
property modified: boolean read fmodified write setmodified; |
|
property encoding: charencodingty read fencoding write fencoding
default ce_locale; |
|
property eolstyle: eolstylety read feolstyle write feolstyle
default eol_default; |
|
property options: texteditoptionsty read foptions write setoptions
default []; |
|
property textflags default defaulttextflags - [tf_noselect]; |
|
property statfile: tstatfile read fstatfile write setstatfile; |
|
property statvarname: msestring read getstatvarname write fstatvarname; |
|
property statpriority: integer read fstatpriority
write fstatpriority default 0; |
|
property tabulators: ttabulators read gettabulators write settabulators; |
|
property marginlinepos: integer read fmarginlinepos
write setmarginlinepos default 0; |
|
property marginlinecolor: colorty read fmarginlinecolor
write setmarginlinecolor default cl_none; |
|
property onfontchanged: notifyeventty read fonfontchanged
write fonfontchanged; |
|
property onmodifiedchanged: booleanchangedeventty read fonmodifiedchanged
write fonmodifiedchanged; |
|
property ontextmouseevent: textmouseeventty read fontextmouseevent
write fontextmouseevent; |
|
property oneditnotifcation: editnotificationeventty read foneditnotification
write foneditnotification; |
|
property ondrawtext: textdraweventty read fondrawtext write fondrawtext; |
|
property onsetupeditor: setupeditoreventty read fonsetupeditor
write fonsetupeditor; |
|
property oncellevent: celleventty read foncellevent write foncellevent; |
|
property optionswidget default defaulttexteditwidgetoptions; |
|
property optionswidget1 default defaulttexteditwidgetoptions1; |
|
Generated by PasDoc 0.16.0.