I'm using a TImageMView with a TImageEnVect to create an image editor for multipage images like TIFFs.
The TImageMView shows all the page thumbs and as one is selected it shows in the TImageEnVect.
That said, I'm trying to get the Undo to work between pages. That is if I select page 1 and do some edits on the TImageEnVect, and then move to page 2, once I run undo it changes page 2 back to what was in the undo buffer for page 1. Not what I want.
Is there a way to keep an undo list for each page in the TImageMView so when I'm on page 1 the undo list only applies to things I changed on page 1, and them when I move to page 2 the same thing.
Are you calling ImageEnVect.Proc.SaveUndo or ImageEnMView.Proc.Undo? I suspect you are doing the former. So use ImageEnMView.Proc.SaveUndo and ImageEnMView.Proc.Undo.
If you wish to be able to undo image changes as well as undo object changes then I you suggest you change your GDI to use MDI or a PageControl containing a TImageEnVect so that each frame is loaded into a separate page. (In other words, use one ImageEnVect for each frame so undo will only affect the active ImageEnVect. When you change the active ImageEnVect do a ClearAllUndo so that undo will only function on one ImageEnVect at a time.