Class tinplaceedit
Unit
Declaration
type tinplaceedit = class(tobject, iassistiveclientedit)
Description
Hierarchy
- tobject
- tinplaceedit
Overview
Fields
fupdating: integer; |
|
fstate: inplaceeditstatesty; |
|
fcaretwidth: integer; |
|
frow: integer; |
|
fbackup: msestring; |
Methods
function caretonreadonly(): boolean; |
|
function initactioninfo(aaction: editactionty): editnotificationinfoty; |
|
function updateindex(const avalue: int32): int32; |
|
procedure checkindexvalues; |
|
procedure setcurindex(const avalue: integer); |
|
procedure moveindex1(newindex: integer; shift: boolean = false; donotify: boolean = true); |
|
procedure deletechar; virtual; |
|
procedure deleteback; virtual; |
|
procedure internaldelete(start,len,startindex: integer; selected: boolean); virtual; |
|
function checkaction(const aaction: editactionty): boolean; overload; |
|
function checkaction(var info: editnotificationinfoty): boolean; overload; |
|
procedure enterchars(const chars: msestring); virtual; |
|
function locating: boolean; |
|
procedure onundo(const sender: tobject); |
|
procedure onredo(const sender: tobject); |
|
procedure oncopy(const sender: tobject); |
|
procedure oncut(const sender: tobject); |
|
procedure onpaste(const sender: tobject); |
|
procedure onselectall(const sender: tobject); |
|
procedure redo; virtual; |
|
function canredo: boolean; virtual; |
|
function pastefromclipboard( const buffer: clipboardbufferty): boolean; virtual; |
|
function copytoclipboard(const buffer: clipboardbufferty): boolean; |
|
function cuttoclipboard(const buffer: clipboardbufferty): boolean; virtual; |
|
function getiassistiveclient(): iassistiveclientedit virtual; |
|
function getassistiveparent(): iassistiveclient; |
|
function getinstance: tobject; |
|
function getassistivewidget(): tobject; |
|
function getassistivename(): msestring; |
|
function getassistivecaption(): msestring; |
|
function getassistivetext(): msestring; |
|
function getassistivecaretindex(): int32; |
|
function getassistivehint(): msestring; |
|
function getassistiveflags(): assistiveflagsty; |
|
function getifidatalinkintf(): iifidatalink; |
|
constructor create(aowner: twidget; editintf: iedit; istextedit: boolean = false); |
|
destructor destroy; override; |
|
procedure setup(const text: msestring; cursorindex: integer; shift: boolean; const atextrect,aclientrect: rectty; const format: formatinfoarty = nil; const tabulators: tcustomtabulators = nil; const font: tfont = nil; noinvalidate: boolean = false); |
|
procedure updatepos(const atextrect,aclientrect: rectty); |
|
procedure movepos(const adist: pointty); |
|
procedure setscrollvalue(const avalue: real; const horz: boolean); |
|
function getfontcanvas: tcanvas; |
|
function beforechange: boolean; |
|
procedure begingroup; virtual; |
|
procedure endgroup; virtual; |
|
procedure scroll(const dist: pointty; const scrollcaret: boolean = true); |
|
procedure beginupdate; |
|
procedure endupdate; |
|
function updating: boolean; |
|
procedure updatecaret; |
|
procedure dokeydown(var kinfo: keyeventinfoty); |
|
procedure mouseevent(var minfo: mouseeventinfoty); |
|
procedure updatepopupmenu(var amenu: tpopupmenu; const popupmenu: tpopupmenu; var mouseinfo: mouseeventinfoty; const hasselection: boolean); |
|
procedure setfirstclick(var ainfo: mouseeventinfoty); |
|
procedure doactivate; |
|
procedure dodeactivate; |
|
procedure dofocus; |
|
procedure dodefocus; |
|
procedure dopaint(const canvas: tcanvas); |
|
procedure poschanged; |
|
procedure dragstarted; |
|
procedure clear; virtual; |
|
procedure initfocus; |
|
procedure moveindex(newindex: integer; shift: boolean = false; donotify: boolean = true); virtual; |
|
procedure inserttext(const text: msestring; nooverwrite: boolean = true); |
|
function copytoclipboard: boolean; |
|
function cuttoclipboard: boolean; |
|
function pastefromclipboard: boolean; |
|
procedure deleteselection; |
|
procedure clearundo; |
|
procedure undo; virtual; |
|
procedure selectall; |
|
procedure clearselection; |
|
function optionsedit: optionseditty; |
|
function canedit: boolean; |
|
function canundo: boolean; virtual; |
|
function cancopy: boolean; |
|
function canpaste: boolean; |
|
function getinsertcaretwidth(const canvas: tcanvas; const afont: tfont): integer; |
|
function selectedtext: msestring; |
|
function hasselection: boolean; |
|
function lasttextclipped: boolean; |
|
function lasttextclipped(const acliprect: rectty): boolean; |
|
function textclipped: boolean; |
|
function mousepostotextindex(const apos: pointty): integer; |
|
function textindextomousepos(const aindex: integer): pointty; |
Properties
property font: tfont read ffont write setfont; |
|
property fontstyle: fontstylesty read ffontstyle write ffontstyle default []; |
|
property fontcolor: colorty read ffontcolor write ffontcolor default cl_none; |
|
property fontcolorbackground: colorty read ffontcolor write
ffontcolorbackground default cl_none; |
|
property widget: twidget read fwidget; |
|
property forcecaret: boolean read getforcecaret write setforcecaret; |
|
property insertstate: boolean read getinsertstate write setinsertstate; |
|
property selstart: integer read fselstart write setselstart; |
|
property sellength: halfinteger read fsellength write setsellength; |
|
property curindex: integer read fcurindex write setcurindex; |
|
property caretpos: pointty read getcaretpos; |
|
property optionsedit1: optionsedit1ty read foptionsedit1
write foptionsedit1 default defaultoptionsedit1; |
|
property textflags: textflagsty read ftextflags write settextflags; |
|
property textflagsactive: textflagsty read ftextflagsactive
write settextflagsactive; |
|
property passwordchar: msechar read fpasswordchar
write setpasswordchar default #0; |
|
property maxlength: integer read fmaxlength write setmaxlength default -1; |
|
property caretwidth: integer read fcaretwidth write setcaretwidth
default defaultcaretwidth; |
|
property text: msestring read finfo.text.text write settext; |
|
property oldtext: msestring read foldtext write foldtext; |
|
property richtext: richstringty read finfo.text write setrichtext; |
|
property format: formatinfoarty read finfo.text.format write setformat; |
|
property destrect: rectty read finfo.dest; |
|
property cliprect: rectty read finfo.clip; |
|
property textrect: rectty read gettextrect; |
|
property filtertext: msestring read ffiltertext write setfiltertext; |
Description
Fields
fupdating: integer; |
|
fstate: inplaceeditstatesty; |
|
fcaretwidth: integer; |
|
frow: integer; |
|
fbackup: msestring; |
|
Methods
function caretonreadonly(): boolean; |
|
function initactioninfo(aaction: editactionty): editnotificationinfoty; |
|
function updateindex(const avalue: int32): int32; |
|
procedure checkindexvalues; |
|
procedure setcurindex(const avalue: integer); |
|
procedure moveindex1(newindex: integer; shift: boolean = false; donotify: boolean = true); |
|
procedure deletechar; virtual; |
|
procedure deleteback; virtual; |
|
procedure internaldelete(start,len,startindex: integer; selected: boolean); virtual; |
|
function checkaction(const aaction: editactionty): boolean; overload; |
|
function checkaction(var info: editnotificationinfoty): boolean; overload; |
|
procedure enterchars(const chars: msestring); virtual; |
|
function locating: boolean; |
|
procedure onundo(const sender: tobject); |
|
procedure onredo(const sender: tobject); |
|
procedure oncopy(const sender: tobject); |
|
procedure oncut(const sender: tobject); |
|
procedure onpaste(const sender: tobject); |
|
procedure onselectall(const sender: tobject); |
|
procedure redo; virtual; |
|
function canredo: boolean; virtual; |
|
function pastefromclipboard( const buffer: clipboardbufferty): boolean; virtual; |
|
function copytoclipboard(const buffer: clipboardbufferty): boolean; |
|
function cuttoclipboard(const buffer: clipboardbufferty): boolean; virtual; |
|
function getiassistiveclient(): iassistiveclientedit virtual; |
|
function getassistiveparent(): iassistiveclient; |
|
function getinstance: tobject; |
|
function getassistivewidget(): tobject; |
|
function getassistivename(): msestring; |
|
function getassistivecaption(): msestring; |
|
function getassistivetext(): msestring; |
|
function getassistivecaretindex(): int32; |
|
function getassistivehint(): msestring; |
|
function getassistiveflags(): assistiveflagsty; |
|
function getifidatalinkintf(): iifidatalink; |
|
constructor create(aowner: twidget; editintf: iedit; istextedit: boolean = false); |
|
destructor destroy; override; |
|
procedure setup(const text: msestring; cursorindex: integer; shift: boolean; const atextrect,aclientrect: rectty; const format: formatinfoarty = nil; const tabulators: tcustomtabulators = nil; const font: tfont = nil; noinvalidate: boolean = false); |
|
procedure updatepos(const atextrect,aclientrect: rectty); |
|
procedure movepos(const adist: pointty); |
|
procedure setscrollvalue(const avalue: real; const horz: boolean); |
|
function getfontcanvas: tcanvas; |
|
function beforechange: boolean; |
|
procedure begingroup; virtual; |
|
procedure endgroup; virtual; |
|
procedure scroll(const dist: pointty; const scrollcaret: boolean = true); |
|
procedure beginupdate; |
|
procedure endupdate; |
|
function updating: boolean; |
|
procedure updatecaret; |
|
procedure dokeydown(var kinfo: keyeventinfoty); |
|
procedure mouseevent(var minfo: mouseeventinfoty); |
|
procedure updatepopupmenu(var amenu: tpopupmenu; const popupmenu: tpopupmenu; var mouseinfo: mouseeventinfoty; const hasselection: boolean); |
|
procedure setfirstclick(var ainfo: mouseeventinfoty); |
|
procedure doactivate; |
|
procedure dodeactivate; |
|
procedure dofocus; |
|
procedure dodefocus; |
|
procedure dopaint(const canvas: tcanvas); |
|
procedure poschanged; |
|
procedure dragstarted; |
|
procedure clear; virtual; |
|
procedure initfocus; |
|
procedure moveindex(newindex: integer; shift: boolean = false; donotify: boolean = true); virtual; |
|
procedure inserttext(const text: msestring; nooverwrite: boolean = true); |
|
function copytoclipboard: boolean; |
|
function cuttoclipboard: boolean; |
|
function pastefromclipboard: boolean; |
|
procedure deleteselection; |
|
procedure clearundo; |
|
procedure undo; virtual; |
|
procedure selectall; |
|
procedure clearselection; |
|
function optionsedit: optionseditty; |
|
function canedit: boolean; |
|
function canundo: boolean; virtual; |
|
function cancopy: boolean; |
|
function canpaste: boolean; |
|
function getinsertcaretwidth(const canvas: tcanvas; const afont: tfont): integer; |
|
function selectedtext: msestring; |
|
function hasselection: boolean; |
|
function lasttextclipped: boolean; |
|
function lasttextclipped(const acliprect: rectty): boolean; |
|
function textclipped: boolean; |
|
function mousepostotextindex(const apos: pointty): integer; |
|
function textindextomousepos(const aindex: integer): pointty; |
|
Properties
property font: tfont read ffont write setfont; |
|
property fontstyle: fontstylesty read ffontstyle write ffontstyle default []; |
|
property fontcolor: colorty read ffontcolor write ffontcolor default cl_none; |
|
property fontcolorbackground: colorty read ffontcolor write
ffontcolorbackground default cl_none; |
|
property widget: twidget read fwidget; |
|
property forcecaret: boolean read getforcecaret write setforcecaret; |
|
property insertstate: boolean read getinsertstate write setinsertstate; |
|
property selstart: integer read fselstart write setselstart; |
|
property sellength: halfinteger read fsellength write setsellength; |
|
property curindex: integer read fcurindex write setcurindex; |
|
property caretpos: pointty read getcaretpos; |
|
property optionsedit1: optionsedit1ty read foptionsedit1
write foptionsedit1 default defaultoptionsedit1; |
|
property textflags: textflagsty read ftextflags write settextflags; |
|
property textflagsactive: textflagsty read ftextflagsactive
write settextflagsactive; |
|
property passwordchar: msechar read fpasswordchar
write setpasswordchar default #0; |
|
property maxlength: integer read fmaxlength write setmaxlength default -1; |
|
property caretwidth: integer read fcaretwidth write setcaretwidth
default defaultcaretwidth; |
|
property text: msestring read finfo.text.text write settext; |
|
property oldtext: msestring read foldtext write foldtext; |
|
property richtext: richstringty read finfo.text write setrichtext; |
|
property format: formatinfoarty read finfo.text.format write setformat; |
|
property destrect: rectty read finfo.dest; |
|
property cliprect: rectty read finfo.clip; |
|
property textrect: rectty read gettextrect; |
|
property filtertext: msestring read ffiltertext write setfiltertext; |
|
Generated by PasDoc 0.16.0.