ImageEn, unit imageenproc |
|
TImageEnProc.CanUndo
Declaration
property CanUndo: Boolean;
Description
Returns True when there are entries in the Undo stack (i.e. so
Undo can be used).
Note:
CanUndo will be False after calling
ClearAllUndo or
ClearUndo if there is only one saved image.
| Demos\ImageEditing\UndoRedo\UndoRedo.dpr |
procedure TMainForm.btnUndoClick(Sender: TObject);
begin
If ImageEnView1.Proc.CanUndo then
ImageEnView1.Proc.Undo
else
ShowMessage('Nothing to Undo!');
end;
See Also
◼Undo