ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Undo with multipage image

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
jeffp Posted - Feb 02 2016 : 10:06:55
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.

Thanks.



jp
1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Feb 02 2016 : 10:23:50
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.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development