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 occurred. 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'

See Also

AutoUndo
GetUndoInfo
SaveUndo
UndoAt
UndoCount
Undo

Compatibility Information

Prior to v6.2.1, UndoCaptions were hard coded strings. In v6.3.0, the captions became localizable strings.