Sign in Join
FPDoc Onlineexperiment

TCustomEdit.Undo procedure

Member of TCustomEditpublicIn unit StdCtrls

Reverts the last editing action in the control.

Declaration

pascal
procedure Undo; virtual

Description

Undo is a method used to revert the last editing action performed in the control. Undo is performed when the Ctrl+Z (or Meta+Z on macOS) key combination is handled for the control. Pressing Ctrl+Z causes the value in Text to revert to its value before editing. A subsequent Ctrl+Z key press causes the edited value to be toggled.

Undo calls the Undo method in the widgetset class when its handle has been allocated.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.