Class tcustomedit

Unit

Declaration

type tcustomedit = class(tpublishedwidget, iedit)

Description

This item has no description. Showing description inherited from tmsecomponent.

Extends the FPC tcomponent with object linking facilities and the like; base of every MSEgui component. This unit, mseclasses, must be added to uses after classes in code that also uses a third-party unit expecting the plain FPC tcomponent (e.g. TPSScript.Create(TComponent)), since MSEgui forks the FPC classes unit.

Hierarchy

Overview

Fields

Protected ftextflags: textflagsty;
Protected ftextflagsactive: textflagsty;
Protected feditor: tinplaceedit;
Protected foptionsedit: optionseditty;
Protected fstate: dataeditstatesty;

Methods

Protected function gettext: msestring virtual;
Protected procedure settext(const avalue: msestring) virtual;
Protected function getreadonly: boolean; virtual;
Protected procedure setreadonly(const avalue: boolean); virtual;
Protected procedure setmaxlength(const avalue: integer);
Protected procedure updatetextflags; virtual;
Protected function getedittext: msestring; virtual;
Protected procedure updateedittext(const force: boolean);
Protected procedure updateemptytext();
Protected procedure updateflagtext(var avalue: msestring);
Protected function geteditor: tinplaceedit;
Protected function geteditfont: tfont; virtual;
Protected function getinnerframe: framety; virtual;
Protected function geteditframe: framety; virtual;
Protected procedure gettextrects(out outer: rectty; out inner: rectty);
Protected procedure setupeditor; virtual;
Protected function getformat(): formatinfoarty virtual;
Protected procedure internalcreateframe; override;
Protected procedure clientrectchanged; override;
Protected procedure getautopaintsize(var asize: sizety); override;
Protected procedure fontchanged; override;
Protected procedure enabledchanged; override;
Protected procedure dragstarted; override;
Protected function navigrect: rectty; override;
Protected class function classskininfo: skininfoty; override;
Protected procedure dokeydown(var info: keyeventinfoty); override;
Protected procedure clientmouseevent(var info: mouseeventinfoty); override;
Protected procedure updatepopupmenu(var amenu: tpopupmenu; var mouseinfo: mouseeventinfoty); override;
Protected procedure doactivate; override;
Protected procedure dodeactivate; override;
Protected procedure dofocus; override;
Protected procedure dodefocus; override;
Protected procedure dopaintforeground(const canvas: tcanvas); override;
Protected procedure dopaintbackground(const canvas: tcanvas); override;
Protected procedure paintimage(const canvas: tcanvas); virtual;
Protected procedure painttext(const canvas: tcanvas); virtual;
Protected function needsfocuspaint: boolean; override;
Protected procedure rootchanged(const aflags: rootchangeflagsty); override;
Protected function gettextcliprect(): rectty; virtual;
Protected procedure showhint(const aid: int32; var info: hintinfoty); override;
Protected procedure dochange; virtual;
Protected procedure formatchanged; virtual;
Protected procedure internaltextedited(const aevent: texteditedeventty);
Protected procedure dotextedited; virtual;
Protected procedure emptychanged;
Protected procedure readpwchar(reader: treader);
Protected procedure writepwchar(writer: twriter);
Protected procedure defineproperties(filer: tfiler); override;
Protected function verticalfontheightdelta: boolean; override;
Protected procedure setoptionsedit1(const avalue: optionsedit1ty); virtual;
Protected function getassistivecaretindex(): int32 override;
Protected function getassistiveflags(): assistiveflagsty override;
Protected function getoptionsedit: optionseditty; virtual;
Protected function hasselection: boolean; virtual;
Protected function cangridcopy: boolean; virtual;
Protected procedure setoptionsedit(const avalue: optionseditty); virtual;
Protected procedure updatereadonlystate; virtual;
Protected procedure editnotification(var info: editnotificationinfoty); virtual;
Protected procedure updatecopytoclipboard(var atext: msestring); virtual;
Protected procedure updatepastefromclipboard(var atext: msestring); virtual;
Protected function locatecount: integer; virtual;
Protected function locatecurrentindex: integer; virtual;
Protected procedure locatesetcurrentindex(const aindex: integer); virtual;
Protected function getkeystring(const aindex: integer): msestring; virtual;
Protected function getedited: boolean; virtual;
Public constructor create(aowner: tcomponent); override;
Public destructor destroy; override;
Public procedure initnewcomponent(const ascale: real); override;
Public procedure changed;
Public procedure initfocus;
Public procedure synctofontheight; override;
Public function actualcursor(const apos: pointty): cursorshapety; override;

Properties

Public property editor: tinplaceedit read feditor;
Public property readonly: boolean read getreadonly write setreadonly;
Public property optionsedit: optionseditty read getoptionsedit write setoptionsedit default defaultoptionsedit;
Public property optionsedit1: optionsedit1ty read getoptionsedit1 write setoptionsedit1 default defaultoptionsedit1;
Public property passwordchar: msechar read getpasswordchar write setpasswordchar stored false default #0;
Public property cursorreadonly: cursorshapety read fcursorreadonly write setcursorreadonly default cr_default;
Public property maxlength: integer read getmaxlength write setmaxlength default -1;
Public property text: msestring read gettext write settext;
Public property oldtext: msestring read getoldtext;
Public property textflags: textflagsty read ftextflags write settextflags default defaulttextflags;
Public property textflagsactive: textflagsty read ftextflagsactive write settextflagsactive default defaulttextflagsactive;
Public property font: twidgetfont read getfont write setfont stored isfontstored;
Public property caretwidth: integer read getcaretwidth write setcaretwidth default defaultcaretwidth;
Public property empty_options: emptyoptionsty read fempty_options write fempty_options default [];
Public property empty_color: colorty read fempty_color write setempty_color default cl_none;
Public property empty_font: twidgetfontempty read getfontempty write setfontempty stored isfontemptystored;
Public property empty_fontstyle: fontstylesty read fempty_fontstyle write setempty_fontstyle default [];
Public property empty_textflags: textflagsty read fempty_textflags write setempty_textflags default defaulttextflagsempty;
Public property empty_text: msestring read fempty_text write setempty_text;
Public property empty_textcolor: colorty read fempty_textcolor write setempty_textcolor default cl_none;
Public property empty_textcolorbackground: colorty read fempty_textcolorbackground write setempty_textcolorbackground default cl_none;
Public property onchange: notifyeventty read fonchange write fonchange;
Public property ontextedited: texteditedeventty read fontextedited write fontextedited;
Public property oncopytoclipboard: updatestringeventty read foncopytoclipboard write foncopytoclipboard;
Public property onpastefromclipboard: updatestringeventty read fonpastefromclipboard write fonpastefromclipboard;
Public property onpaintimage: painteventty read fonpaintimage write fonpaintimage;
Published property optionswidget1 default defaulteditwidgetoptions1;
Published property optionswidget default defaulteditwidgetoptions;
Published property bounds_cx default defaulteditwidgetwidth;
Published property bounds_cy default defaulteditwidgetheight;

Description

Fields

Protected ftextflags: textflagsty;

This item has no description.

Protected ftextflagsactive: textflagsty;

This item has no description.

Protected feditor: tinplaceedit;

This item has no description.

Protected foptionsedit: optionseditty;

This item has no description.

Protected fstate: dataeditstatesty;

This item has no description.

Methods

Protected function gettext: msestring virtual;

This item has no description.

Protected procedure settext(const avalue: msestring) virtual;

This item has no description.

Protected function getreadonly: boolean; virtual;

This item has no description.

Protected procedure setreadonly(const avalue: boolean); virtual;

This item has no description.

Protected procedure setmaxlength(const avalue: integer);

This item has no description.

Protected procedure updatetextflags; virtual;

This item has no description.

Protected function getedittext: msestring; virtual;

This item has no description.

Protected procedure updateedittext(const force: boolean);

This item has no description.

Protected procedure updateemptytext();

This item has no description.

Protected procedure updateflagtext(var avalue: msestring);

This item has no description.

Protected function geteditor: tinplaceedit;

This item has no description.

Protected function geteditfont: tfont; virtual;

This item has no description.

Protected function getinnerframe: framety; virtual;

This item has no description.

Protected function geteditframe: framety; virtual;

This item has no description.

Protected procedure gettextrects(out outer: rectty; out inner: rectty);

This item has no description.

Protected procedure setupeditor; virtual;

This item has no description.

Protected function getformat(): formatinfoarty virtual;

This item has no description.

Protected procedure internalcreateframe; override;

This item has no description.

Protected procedure clientrectchanged; override;

This item has no description.

Protected procedure getautopaintsize(var asize: sizety); override;

This item has no description.

Protected procedure fontchanged; override;

This item has no description.

Protected procedure enabledchanged; override;

This item has no description.

Protected procedure dragstarted; override;

This item has no description.

Protected function navigrect: rectty; override;

This item has no description.

Protected class function classskininfo: skininfoty; override;

This item has no description.

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

This item has no description.

Protected procedure clientmouseevent(var info: mouseeventinfoty); override;

This item has no description.

Protected procedure updatepopupmenu(var amenu: tpopupmenu; var mouseinfo: mouseeventinfoty); override;

This item has no description.

Protected procedure doactivate; override;

This item has no description.

Protected procedure dodeactivate; override;

This item has no description.

Protected procedure dofocus; override;

This item has no description.

Protected procedure dodefocus; override;

This item has no description.

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

This item has no description.

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

This item has no description.

Protected procedure paintimage(const canvas: tcanvas); virtual;

This item has no description.

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

This item has no description.

Protected function needsfocuspaint: boolean; override;

This item has no description.

Protected procedure rootchanged(const aflags: rootchangeflagsty); override;

This item has no description.

Protected function gettextcliprect(): rectty; virtual;

This item has no description.

Protected procedure showhint(const aid: int32; var info: hintinfoty); override;

This item has no description.

Protected procedure dochange; virtual;

This item has no description.

Protected procedure formatchanged; virtual;

This item has no description.

Protected procedure internaltextedited(const aevent: texteditedeventty);

This item has no description.

Protected procedure dotextedited; virtual;

This item has no description.

Protected procedure emptychanged;

This item has no description.

Protected procedure readpwchar(reader: treader);

This item has no description.

Protected procedure writepwchar(writer: twriter);

This item has no description.

Protected procedure defineproperties(filer: tfiler); override;

This item has no description.

Protected function verticalfontheightdelta: boolean; override;

This item has no description.

Protected procedure setoptionsedit1(const avalue: optionsedit1ty); virtual;

This item has no description.

Protected function getassistivecaretindex(): int32 override;

This item has no description.

Protected function getassistiveflags(): assistiveflagsty override;

This item has no description.

Protected function getoptionsedit: optionseditty; virtual;

This item has no description.

Protected function hasselection: boolean; virtual;

This item has no description.

Protected function cangridcopy: boolean; virtual;

This item has no description.

Protected procedure setoptionsedit(const avalue: optionseditty); virtual;

This item has no description.

Protected procedure updatereadonlystate; virtual;

This item has no description.

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

This item has no description.

Protected procedure updatecopytoclipboard(var atext: msestring); virtual;

This item has no description.

Protected procedure updatepastefromclipboard(var atext: msestring); virtual;

This item has no description.

Protected function locatecount: integer; virtual;

This item has no description.

Protected function locatecurrentindex: integer; virtual;

This item has no description.

Protected procedure locatesetcurrentindex(const aindex: integer); virtual;

This item has no description.

Protected function getkeystring(const aindex: integer): msestring; virtual;

This item has no description.

Protected function getedited: boolean; virtual;

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 initnewcomponent(const ascale: real); override;

This item has no description.

Public procedure changed;

This item has no description.

Public procedure initfocus;

This item has no description.

Public procedure synctofontheight; override;

This item has no description.

Public function actualcursor(const apos: pointty): cursorshapety; override;

This item has no description.

Properties

Public property editor: tinplaceedit read feditor;

This item has no description.

Public property readonly: boolean read getreadonly write setreadonly;

This item has no description.

Public property optionsedit: optionseditty read getoptionsedit write setoptionsedit default defaultoptionsedit;

This item has no description.

Public property optionsedit1: optionsedit1ty read getoptionsedit1 write setoptionsedit1 default defaultoptionsedit1;

This item has no description.

Public property passwordchar: msechar read getpasswordchar write setpasswordchar stored false default #0;

This item has no description.

Public property cursorreadonly: cursorshapety read fcursorreadonly write setcursorreadonly default cr_default;

This item has no description.

Public property maxlength: integer read getmaxlength write setmaxlength default -1;

This item has no description.

Public property text: msestring read gettext write settext;

The data-edit widgets (tintegeredit, tstringedit, trealedit...) keep their data in value, of the widget's native type. text is the raw, not yet validated text of the embedded inplace editor, updated on every keystroke; it is converted to value by checkvalue (triggered for example by pressing Enter), which can be intercepted and rejected or modified through the onsetvalue/oncheckvalue events — ondataentered fires afterwards, once the new value has actually been accepted. To set a widget's value from code, assign value, not text: the latter is only meant to reflect (or drive) what the user is currently typing.

Public property oldtext: msestring read getoldtext;

This item has no description.

Public property textflags: textflagsty read ftextflags write settextflags default defaulttextflags;

This item has no description.

Public property textflagsactive: textflagsty read ftextflagsactive write settextflagsactive default defaulttextflagsactive;

This item has no description.

Public property font: twidgetfont read getfont write setfont stored isfontstored;

This item has no description.

Public property caretwidth: integer read getcaretwidth write setcaretwidth default defaultcaretwidth;

This item has no description.

Public property empty_options: emptyoptionsty read fempty_options write fempty_options default [];

This item has no description.

Public property empty_color: colorty read fempty_color write setempty_color default cl_none;

This item has no description.

Public property empty_font: twidgetfontempty read getfontempty write setfontempty stored isfontemptystored;

This item has no description.

Public property empty_fontstyle: fontstylesty read fempty_fontstyle write setempty_fontstyle default [];

This item has no description.

Public property empty_textflags: textflagsty read fempty_textflags write setempty_textflags default defaulttextflagsempty;

This item has no description.

Public property empty_text: msestring read fempty_text write setempty_text;

This item has no description.

Public property empty_textcolor: colorty read fempty_textcolor write setempty_textcolor default cl_none;

This item has no description.

Public property empty_textcolorbackground: colorty read fempty_textcolorbackground write setempty_textcolorbackground default cl_none;

This item has no description.

Public property onchange: notifyeventty read fonchange write fonchange;

This item has no description.

Public property ontextedited: texteditedeventty read fontextedited write fontextedited;

This item has no description.

Public property oncopytoclipboard: updatestringeventty read foncopytoclipboard write foncopytoclipboard;

This item has no description.

Public property onpastefromclipboard: updatestringeventty read fonpastefromclipboard write fonpastefromclipboard;

This item has no description.

Public property onpaintimage: painteventty read fonpaintimage write fonpaintimage;

This item has no description.

Published property optionswidget1 default defaulteditwidgetoptions1;

This item has no description.

Published property optionswidget default defaulteditwidgetoptions;

This item has no description.

Published property bounds_cx default defaulteditwidgetwidth;

This item has no description.

Published property bounds_cy default defaulteditwidgetheight;

This item has no description.


Generated by PasDoc 1.0.4.