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: First saved undo.




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

AutoUndo
GetUndoInfo
SaveUndo
UndoAt
UndoCount
Undo