Class tcustomtextedit

Unit

Declaration

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

Description

This item has no description.

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[const index: integer]: msestring read getgridvalue write setgridvalue;
Public property gridvalues: msestringarty read getgridvalues write setgridvalues;
Public property richlines[const index: integer]: richstringty read getrichlines write setrichlines;
Public property richformats[const index: 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;

This item has no description.

Protected fgridintf: iwidgetgrid;

This item has no description.

Protected fupdating: integer;

This item has no description.

Protected fnotificationchangelock: integer;

This item has no description.

Protected ffilename: filenamety;

This item has no description.

Protected ffilerights: filerightsty;

This item has no description.

Protected flines: tgridrichstringdatalist;

This item has no description.

Protected ffoundeolstyle: eolstylety;

This item has no description.

Methods

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 function beforechange: boolean;

This item has no description.

Protected procedure fontchanged; override;

This item has no description.

Protected procedure tabulatorschanged(const sender: tarrayprop; const index: integer);

This item has no description.

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

This item has no description.

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

This item has no description.

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

This item has no description.

Protected procedure getstate(out state: texteditstatety); virtual;

This item has no description.

Protected procedure setstate(const state: texteditstatety); virtual;

This item has no description.

Protected procedure setfilename(value: filenamety);

This item has no description.

Protected procedure insertlinebreak; virtual;

This item has no description.

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

This item has no description.

Protected procedure updateindex(select: boolean);

This item has no description.

Protected procedure textinserted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual;

This item has no description.

Protected procedure textdeleted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); virtual;

This item has no description.

Protected procedure dotextmouseevent(var info: textmouseeventinfoty);

This item has no description.

Protected procedure dosetupeditor();

This item has no description.

Protected procedure setupeditor; 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 getinnerframe: framety; override;

This item has no description.

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

This item has no description.

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

This item has no description.

Protected function getiassistiveclient(): iassistiveclient override;

This item has no description.

Protected function getassistivecolumncaption(): msestring virtual;

This item has no description.

Protected procedure setfirstclick(var ainfo: mouseeventinfoty);

This item has no description.

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

This item has no description.

Protected procedure datalistdestroyed;

This item has no description.

Protected function getdatalistclass: datalistclassty; virtual;

This item has no description.

Protected function getinitvalue: pointer;

This item has no description.

Protected function getdefaultvalue: pointer;

This item has no description.

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

This item has no description.

Protected procedure setgridintf(const intf: iwidgetgrid);

This item has no description.

Protected function getgridintf: iwidgetgrid;

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;

This item has no description.

Protected procedure drawcell(const canvas: tcanvas);

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 initgridwidget;

This item has no description.

Protected procedure valuetogrid(row: integer);

This item has no description.

Protected procedure gridtovalue(row: integer);

This item has no description.

Protected procedure setvaluedata(const source); virtual;

This item has no description.

Protected procedure getvaluedata(out dest); virtual;

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;

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 statdataread; virtual;

This item has no description.

Protected procedure griddatasourcechanged;

This item has no description.

Protected function getifilink: tifilinkcomp;

This item has no description.

Protected procedure dochange; override;

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 dostatread(const reader: tstatreader);

This item has no description.

Protected procedure dostatwrite(const writer: tstatwriter);

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 checkgrid;

This item has no description.

Protected procedure setedpos(const Value: gridcoordty; const select: boolean; const donotify: boolean; const ashowcell: cellpositionty);

This item has no description.

Protected procedure internalclearselection;

This item has no description.

Protected procedure internaldeletetext(const start, stop: gridcoordty; const userinput: boolean);

This item has no description.

Protected function getassistivetext(): msestring; override;

This item has no description.

Protected function getassistiveflags: assistiveflagsty; override;

This item has no description.

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

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 procedure createtabulators;

This item has no description.

Public function actualcolor: colorty; override;

This item has no description.

Public procedure synctofontheight; override;

This item has no description.

Public procedure reloadfile(restorestate: boolean = true);

This item has no description.

Public procedure loadfromstream(const stream: ttextstream; restorestate: boolean = false);

This item has no description.

Public procedure loadfromfile(afilename: filenamety; restorestate: boolean = false); virtual;

This item has no description.

Public procedure savetostream(const stream: ttextstream; const resetmodified: boolean);

This item has no description.

Public procedure savetofile(const afilename: filenamety = '');

This item has no description.

Public procedure beginupdate; virtual;

This item has no description.

Public procedure endupdate; virtual;

This item has no description.

Public procedure clear; virtual;

This item has no description.

Public procedure seteditpos(const Value: gridcoordty; const select: boolean = false; const ashowcell: cellpositionty = cep_nearest);

This item has no description.

Public procedure inserttext(const apos: gridcoordty; const atext: msestring; out aendpos: gridcoordty; selected: boolean = false; insertbackwards: boolean = false); overload;

This item has no description.

Public procedure inserttext(const apos: gridcoordty; const atext: msestring; selected: boolean = false; insertbackwards: boolean = false); overload;

This item has no description.

Public procedure inserttext(const atext: msestring; selected: boolean = false); overload;

This item has no description.

Public procedure deletetext(const start,stop: gridcoordty);

This item has no description.

Public function appendrow(const atext: msestring): integer; overload;

This item has no description.

Public function appendrow(const atext: richstringty): integer; overload;

This item has no description.

Public function hasselection: boolean; override;

This item has no description.

Public function selectedtext: msestring;

This item has no description.

Public function selectedrichtext: richstringty;

This item has no description.

Public procedure getselectedrows(out start,stop: integer);

This item has no description.

Public procedure setfontstyle(const start,stop: gridcoordty; const astyle: fontstylety; const aset: boolean; const afontcolor: colorty = cl_default; const acolorbackground: colorty = cl_default);

This item has no description.

Public procedure setselection(const start,stop: gridcoordty; const aseteditpos: boolean = false; const ashowcell: cellpositionty = cep_nearest);

This item has no description.

Public procedure clearselection;

This item has no description.

Public procedure copyselection;

This item has no description.

Public procedure cutselection;

This item has no description.

Public function canpaste: boolean;

This item has no description.

Public procedure paste;

This item has no description.

Public procedure deleteselection;

This item has no description.

Public procedure selectall;

This item has no description.

Public function find(const atext: msestring; options: searchoptionsty; var textpos: gridcoordty; const endpos: gridcoordty; selectfound: boolean = false; const ashowcell: cellpositionty = cep_nearest): boolean;

This item has no description.

Public function gettext(const start, stop: gridcoordty): msestring overload reintroduce;

This item has no description.

Public function gettext: msestring overload reintroduce;

This item has no description.

Public procedure settext(const atext: msestring) reintroduce;

This item has no description.

Public function getrichtext(const start, stop: gridcoordty): richstringty;

This item has no description.

Public function getcellframe: framety; virtual;

This item has no description.

Public function linecount: integer;

This item has no description.

Public function mousepostotextpos(const mousepos: pointty; out textpos: gridcoordty; widgetorg: boolean = false): boolean;

This item has no description.

Public function textpostomousepos(const textpos: gridcoordty; const screenorg: boolean = false): pointty;

This item has no description.

Public function textpostomouserect(const textpos: gridcoordty; const screenorg: boolean = false): rectty;

This item has no description.

Properties

Public property filename: filenamety read ffilename;

This item has no description.

Public property filerights: filerightsty read ffilerights write ffilerights;

This item has no description.

Public property optionsedit default defaulttexteditoptions;

This item has no description.

Public property selectstart: gridcoordty read fselectstart;

This item has no description.

Public property selectend: gridcoordty read fselectend;

This item has no description.

Public property gridvalue[const index: integer]: msestring read getgridvalue write setgridvalue;

This item has no description.

Public property gridvalues: msestringarty read getgridvalues write setgridvalues;

This item has no description.

Public property richlines[const index: integer]: richstringty read getrichlines write setrichlines;

This item has no description.

Public property richformats[const index: integer]: formatinfoarty read getrichformats write setrichformats;

This item has no description.

Public property datalist: tgridrichstringdatalist read flines write setdatalist;

This item has no description.

Public property editpos: gridcoordty read geteditpos write seteditpos1;

This item has no description.

Public property row: integer read getrow write setrow;

This item has no description.

Public property col: integer read getcol write setcol;

This item has no description.

Public property modified: boolean read fmodified write setmodified;

This item has no description.

Public property encoding: charencodingty read fencoding write fencoding default ce_locale;

This item has no description.

Public property eolstyle: eolstylety read feolstyle write feolstyle default eol_default;

This item has no description.

Public property options: texteditoptionsty read foptions write setoptions default [];

This item has no description.

Public property textflags default defaulttextflags - [tf_noselect];

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 tabulators: ttabulators read gettabulators write settabulators;

This item has no description.

Public property marginlinepos: integer read fmarginlinepos write setmarginlinepos default 0;

This item has no description.

Public property marginlinecolor: colorty read fmarginlinecolor write setmarginlinecolor default cl_none;

This item has no description.

Public property onfontchanged: notifyeventty read fonfontchanged write fonfontchanged;

This item has no description.

Public property onmodifiedchanged: booleanchangedeventty read fonmodifiedchanged write fonmodifiedchanged;

This item has no description.

Public property ontextmouseevent: textmouseeventty read fontextmouseevent write fontextmouseevent;

This item has no description.

Public property oneditnotifcation: editnotificationeventty read foneditnotification write foneditnotification;

This item has no description.

Public property ondrawtext: textdraweventty read fondrawtext write fondrawtext;

This item has no description.

Public property onsetupeditor: setupeditoreventty read fonsetupeditor write fonsetupeditor;

This item has no description.

Public property oncellevent: celleventty read foncellevent write foncellevent;

This item has no description.

Published property optionswidget default defaulttexteditwidgetoptions;

This item has no description.

Published property optionswidget1 default defaulttexteditwidgetoptions1;

This item has no description.


Generated by PasDoc 0.17.0.snapshot.