Class tundotextedit

Unit

Declaration

type tundotextedit = class(ttextedit, iundo)

Description

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

Multi-line text edit widget. Its content can be loaded from a file with loadfromfile, as in the following example, which loads the form's own .mfm file into the editor when a button is clicked.

uses
  main_mfm;

procedure tmainfo.ButtonExecute(const sender: TObject);
begin
  edit1.loadfromfile('main.mfm');
end;

image

Hierarchy

Overview

Methods

Protected procedure textinserted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); override;
Protected procedure textdeleted(const apos: gridcoordty; const atext: msestring; const selected: boolean; const endpos: gridcoordty; const backwards: boolean); override;
Protected procedure getselectstart(var selectstartpos: gridcoordty);
Protected procedure setselectstart(const selectstartpos: gridcoordty);
Public constructor create(aowner: tcomponent); override;
Public procedure clear; override;
Public procedure undo;
Public procedure redo;
Public function canundo: boolean;
Public function canredo: boolean;
Public procedure lowercase;
Public procedure uppercase;
Public procedure tabtospace;

Properties

Published property maxundocount: integer read getmaxundocount write setmaxundocount default defaultundomaxcount;
Published property maxundosize: integer read getmaxundosize write setmaxundosize default defaultundobuffermaxsize;

Description

Methods

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

This item has no description.

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

This item has no description.

Protected procedure getselectstart(var selectstartpos: gridcoordty);

This item has no description.

Protected procedure setselectstart(const selectstartpos: gridcoordty);

This item has no description.

Public constructor create(aowner: tcomponent); override;

This item has no description.

Public procedure clear; override;

This item has no description.

Public procedure undo;

This item has no description.

Public procedure redo;

This item has no description.

Public function canundo: boolean;

This item has no description.

Public function canredo: boolean;

This item has no description.

Public procedure lowercase;

This item has no description.

Public procedure uppercase;

This item has no description.

Public procedure tabtospace;

This item has no description.

Properties

Published property maxundocount: integer read getmaxundocount write setmaxundocount default defaultundomaxcount;

This item has no description.

Published property maxundosize: integer read getmaxundosize write setmaxundosize default defaultundobuffermaxsize;

This item has no description.


Generated by PasDoc 1.0.4.