Hi,
I'm working on an application in a virtual machine where I'm still using version 6.3. Currently, there's a BrushTool demo which allows me to essentially redact portions of a document image and then "undo" the redactions in reverse order.
I'd like to get that to work in the BrushTest demo in 6.3 which does everything I want except for the Undo part. I was told I can add undo/redo to the v6.3 BrushTest demo, simply by manually calling Proc.SaveUndo before any change activity (e.g. mousedown).
I tried the SaveUndo and I also tried enabling AutoUndo and it's not undoing anything. I looked at the forum and did a search on undo and didn't find much to help with this.
I added the following code to the FormCreate event:
ImageEnView1.Proc.UndoLimit := 20;
ImageEnView1.Proc.AutoUndo := True;
I added an "Undo" button to the form with a click event containing the following code:
ImageEnView1.Proc.Undo(False);
ImageEnView1.Update;
It seems to me this should be working. What am I getting wrong here?
Thanks,
Robert