ImageEn, unit imageenproc

TImageEnProc.UndoCaptions

TImageEnProc.UndoCaptions


Declaration

property UndoCaptions[index: Integer]: String;


Description

For each item in the Undo stack, ImageEn will include a relevant description of the function that has occured. This is useful to display a list of the available undo changes to the user.
Index = 0: Last saved undo, 1: Second to last saved undo, 2... up to UndoCount - 1.




Demo

Demo  Demos\ImageEditing\UndoRedo\UndoRedo.dpr


Example

// works only when AutoUndo = True and UndoLimit = 2
ImageEnView1.Proc.Contrast(10);
ImageEnView1.Proc.Negative;
ShowMessage( ImageEnView1.Proc.UndoCaptions[ 0 ] ); // this shows 'Negative'
ShowMessage( ImageEnView1.Proc.UndoCaptions[ 1 ] ); // this shows 'Contrast 10'


Compatibility Information

In v6.2.1 and older versions, UndoCaptions were hard coded strings. In v6.3.0, the captions became localizable strings. To re-enable the captions, enable the IEUseLegacyUndoCaptions define in ie.inc


See Also

Published Property  AutoUndo
Public Method  GetUndoInfo
Public Method  SaveUndo
Public Method  UndoAt
Public Property  UndoCount
Public Method  Undo