Class tinplaceedit

Unit

Declaration

type tinplaceedit = class(tobject, iassistiveclientedit)

Description

Hierarchy

Overview

Fields

Protected fupdating: integer;
Protected fstate: inplaceeditstatesty;
Protected fcaretwidth: integer;
Protected frow: integer;
Protected fbackup: msestring;

Methods

Protected function caretonreadonly(): boolean;
Protected function initactioninfo(aaction: editactionty): editnotificationinfoty;
Protected function updateindex(const avalue: int32): int32;
Protected procedure checkindexvalues;
Protected procedure setcurindex(const avalue: integer);
Protected procedure moveindex1(newindex: integer; shift: boolean = false; donotify: boolean = true);
Protected procedure deletechar; virtual;
Protected procedure deleteback; virtual;
Protected procedure internaldelete(start,len,startindex: integer; selected: boolean); virtual;
Protected function checkaction(const aaction: editactionty): boolean; overload;
Protected function checkaction(var info: editnotificationinfoty): boolean; overload;
Protected procedure enterchars(const chars: msestring); virtual;
Protected function locating: boolean;
Protected procedure onundo(const sender: tobject);
Protected procedure onredo(const sender: tobject);
Protected procedure oncopy(const sender: tobject);
Protected procedure oncut(const sender: tobject);
Protected procedure onpaste(const sender: tobject);
Protected procedure onselectall(const sender: tobject);
Protected procedure redo; virtual;
Protected function canredo: boolean; virtual;
Protected function pastefromclipboard( const buffer: clipboardbufferty): boolean; virtual;
Protected function copytoclipboard(const buffer: clipboardbufferty): boolean;
Protected function cuttoclipboard(const buffer: clipboardbufferty): boolean; virtual;
Protected function getiassistiveclient(): iassistiveclientedit virtual;
Protected function getassistiveparent(): iassistiveclient;
Protected function getinstance: tobject;
Protected function getassistivewidget(): tobject;
Protected function getassistivename(): msestring;
Protected function getassistivecaption(): msestring;
Protected function getassistivetext(): msestring;
Protected function getassistivecaretindex(): int32;
Protected function getassistivehint(): msestring;
Protected function getassistiveflags(): assistiveflagsty;
Protected function getifidatalinkintf(): iifidatalink;
Public constructor create(aowner: twidget; editintf: iedit; istextedit: boolean = false);
Public destructor destroy; override;
Public 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);
Public procedure updatepos(const atextrect,aclientrect: rectty);
Public procedure movepos(const adist: pointty);
Public procedure setscrollvalue(const avalue: real; const horz: boolean);
Public function getfontcanvas: tcanvas;
Public function beforechange: boolean;
Public procedure begingroup; virtual;
Public procedure endgroup; virtual;
Public procedure scroll(const dist: pointty; const scrollcaret: boolean = true);
Public procedure beginupdate;
Public procedure endupdate;
Public function updating: boolean;
Public procedure updatecaret;
Public procedure dokeydown(var kinfo: keyeventinfoty);
Public procedure mouseevent(var minfo: mouseeventinfoty);
Public procedure updatepopupmenu(var amenu: tpopupmenu; const popupmenu: tpopupmenu; var mouseinfo: mouseeventinfoty; const hasselection: boolean);
Public procedure setfirstclick(var ainfo: mouseeventinfoty);
Public procedure doactivate;
Public procedure dodeactivate;
Public procedure dofocus;
Public procedure dodefocus;
Public procedure dopaint(const canvas: tcanvas);
Public procedure poschanged;
Public procedure dragstarted;
Public procedure clear; virtual;
Public procedure initfocus;
Public procedure moveindex(newindex: integer; shift: boolean = false; donotify: boolean = true); virtual;
Public procedure inserttext(const text: msestring; nooverwrite: boolean = true);
Public function copytoclipboard: boolean;
Public function cuttoclipboard: boolean;
Public function pastefromclipboard: boolean;
Public procedure deleteselection;
Public procedure clearundo;
Public procedure undo; virtual;
Public procedure selectall;
Public procedure clearselection;
Public function optionsedit: optionseditty;
Public function canedit: boolean;
Public function canundo: boolean; virtual;
Public function cancopy: boolean;
Public function canpaste: boolean;
Public function getinsertcaretwidth(const canvas: tcanvas; const afont: tfont): integer;
Public function selectedtext: msestring;
Public function hasselection: boolean;
Public function lasttextclipped: boolean;
Public function lasttextclipped(const acliprect: rectty): boolean;
Public function textclipped: boolean;
Public function mousepostotextindex(const apos: pointty): integer;
Public function textindextomousepos(const aindex: integer): pointty;

Properties

Public property font: tfont read ffont write setfont;
Public property fontstyle: fontstylesty read ffontstyle write ffontstyle default [];
Public property fontcolor: colorty read ffontcolor write ffontcolor default cl_none;
Public property fontcolorbackground: colorty read ffontcolor write ffontcolorbackground default cl_none;
Public property widget: twidget read fwidget;
Public property forcecaret: boolean read getforcecaret write setforcecaret;
Public property insertstate: boolean read getinsertstate write setinsertstate;
Public property selstart: integer read fselstart write setselstart;
Public property sellength: halfinteger read fsellength write setsellength;
Public property curindex: integer read fcurindex write setcurindex;
Public property caretpos: pointty read getcaretpos;
Public property optionsedit1: optionsedit1ty read foptionsedit1 write foptionsedit1 default defaultoptionsedit1;
Public property textflags: textflagsty read ftextflags write settextflags;
Public property textflagsactive: textflagsty read ftextflagsactive write settextflagsactive;
Public property passwordchar: msechar read fpasswordchar write setpasswordchar default #0;
Public property maxlength: integer read fmaxlength write setmaxlength default -1;
Public property caretwidth: integer read fcaretwidth write setcaretwidth default defaultcaretwidth;
Public property text: msestring read finfo.text.text write settext;
Public property oldtext: msestring read foldtext write foldtext;
Public property richtext: richstringty read finfo.text write setrichtext;
Public property format: formatinfoarty read finfo.text.format write setformat;
Public property destrect: rectty read finfo.dest;
Public property cliprect: rectty read finfo.clip;
Public property textrect: rectty read gettextrect;
Public property filtertext: msestring read ffiltertext write setfiltertext;

Description

Fields

Protected fupdating: integer;
 
Protected fstate: inplaceeditstatesty;
 
Protected fcaretwidth: integer;
 
Protected frow: integer;
 
Protected fbackup: msestring;
 

Methods

Protected function caretonreadonly(): boolean;
 
Protected function initactioninfo(aaction: editactionty): editnotificationinfoty;
 
Protected function updateindex(const avalue: int32): int32;
 
Protected procedure checkindexvalues;
 
Protected procedure setcurindex(const avalue: integer);
 
Protected procedure moveindex1(newindex: integer; shift: boolean = false; donotify: boolean = true);
 
Protected procedure deletechar; virtual;
 
Protected procedure deleteback; virtual;
 
Protected procedure internaldelete(start,len,startindex: integer; selected: boolean); virtual;
 
Protected function checkaction(const aaction: editactionty): boolean; overload;
 
Protected function checkaction(var info: editnotificationinfoty): boolean; overload;
 
Protected procedure enterchars(const chars: msestring); virtual;
 
Protected function locating: boolean;
 
Protected procedure onundo(const sender: tobject);
 
Protected procedure onredo(const sender: tobject);
 
Protected procedure oncopy(const sender: tobject);
 
Protected procedure oncut(const sender: tobject);
 
Protected procedure onpaste(const sender: tobject);
 
Protected procedure onselectall(const sender: tobject);
 
Protected procedure redo; virtual;
 
Protected function canredo: boolean; virtual;
 
Protected function pastefromclipboard( const buffer: clipboardbufferty): boolean; virtual;
 
Protected function copytoclipboard(const buffer: clipboardbufferty): boolean;
 
Protected function cuttoclipboard(const buffer: clipboardbufferty): boolean; virtual;
 
Protected function getiassistiveclient(): iassistiveclientedit virtual;
 
Protected function getassistiveparent(): iassistiveclient;
 
Protected function getinstance: tobject;
 
Protected function getassistivewidget(): tobject;
 
Protected function getassistivename(): msestring;
 
Protected function getassistivecaption(): msestring;
 
Protected function getassistivetext(): msestring;
 
Protected function getassistivecaretindex(): int32;
 
Protected function getassistivehint(): msestring;
 
Protected function getassistiveflags(): assistiveflagsty;
 
Protected function getifidatalinkintf(): iifidatalink;
 
Public constructor create(aowner: twidget; editintf: iedit; istextedit: boolean = false);
 
Public destructor destroy; override;
 
Public 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);
 
Public procedure updatepos(const atextrect,aclientrect: rectty);
 
Public procedure movepos(const adist: pointty);
 
Public procedure setscrollvalue(const avalue: real; const horz: boolean);
 
Public function getfontcanvas: tcanvas;
 
Public function beforechange: boolean;
 
Public procedure begingroup; virtual;
 
Public procedure endgroup; virtual;
 
Public procedure scroll(const dist: pointty; const scrollcaret: boolean = true);
 
Public procedure beginupdate;
 
Public procedure endupdate;
 
Public function updating: boolean;
 
Public procedure updatecaret;
 
Public procedure dokeydown(var kinfo: keyeventinfoty);
 
Public procedure mouseevent(var minfo: mouseeventinfoty);
 
Public procedure updatepopupmenu(var amenu: tpopupmenu; const popupmenu: tpopupmenu; var mouseinfo: mouseeventinfoty; const hasselection: boolean);
 
Public procedure setfirstclick(var ainfo: mouseeventinfoty);
 
Public procedure doactivate;
 
Public procedure dodeactivate;
 
Public procedure dofocus;
 
Public procedure dodefocus;
 
Public procedure dopaint(const canvas: tcanvas);
 
Public procedure poschanged;
 
Public procedure dragstarted;
 
Public procedure clear; virtual;
 
Public procedure initfocus;
 
Public procedure moveindex(newindex: integer; shift: boolean = false; donotify: boolean = true); virtual;
 
Public procedure inserttext(const text: msestring; nooverwrite: boolean = true);
 
Public function copytoclipboard: boolean;
 
Public function cuttoclipboard: boolean;
 
Public function pastefromclipboard: boolean;
 
Public procedure deleteselection;
 
Public procedure clearundo;
 
Public procedure undo; virtual;
 
Public procedure selectall;
 
Public procedure clearselection;
 
Public function optionsedit: optionseditty;
 
Public function canedit: boolean;
 
Public function canundo: boolean; virtual;
 
Public function cancopy: boolean;
 
Public function canpaste: boolean;
 
Public function getinsertcaretwidth(const canvas: tcanvas; const afont: tfont): integer;
 
Public function selectedtext: msestring;
 
Public function hasselection: boolean;
 
Public function lasttextclipped: boolean;
 
Public function lasttextclipped(const acliprect: rectty): boolean;
 
Public function textclipped: boolean;
 
Public function mousepostotextindex(const apos: pointty): integer;
 
Public function textindextomousepos(const aindex: integer): pointty;
 

Properties

Public property font: tfont read ffont write setfont;
 
Public property fontstyle: fontstylesty read ffontstyle write ffontstyle default [];
 
Public property fontcolor: colorty read ffontcolor write ffontcolor default cl_none;
 
Public property fontcolorbackground: colorty read ffontcolor write ffontcolorbackground default cl_none;
 
Public property widget: twidget read fwidget;
 
Public property forcecaret: boolean read getforcecaret write setforcecaret;
 
Public property insertstate: boolean read getinsertstate write setinsertstate;
 
Public property selstart: integer read fselstart write setselstart;
 
Public property sellength: halfinteger read fsellength write setsellength;
 
Public property curindex: integer read fcurindex write setcurindex;
 
Public property caretpos: pointty read getcaretpos;
 
Public property optionsedit1: optionsedit1ty read foptionsedit1 write foptionsedit1 default defaultoptionsedit1;
 
Public property textflags: textflagsty read ftextflags write settextflags;
 
Public property textflagsactive: textflagsty read ftextflagsactive write settextflagsactive;
 
Public property passwordchar: msechar read fpasswordchar write setpasswordchar default #0;
 
Public property maxlength: integer read fmaxlength write setmaxlength default -1;
 
Public property caretwidth: integer read fcaretwidth write setcaretwidth default defaultcaretwidth;
 
Public property text: msestring read finfo.text.text write settext;
 
Public property oldtext: msestring read foldtext write foldtext;
 
Public property richtext: richstringty read finfo.text write setrichtext;
 
Public property format: formatinfoarty read finfo.text.format write setformat;
 
Public property destrect: rectty read finfo.dest;
 
Public property cliprect: rectty read finfo.clip;
 
Public property textrect: rectty read gettextrect;
 
Public property filtertext: msestring read ffiltertext write setfiltertext;
 

Generated by PasDoc 0.16.0.