T O P I C R E V I E W |
pierrotsc |
Posted - Jan 12 2015 : 15:10:51 Can this statement be undone with the Undo command? I cannot make it work.
Mainform.ImageEnVect.IEBitmap.Assign(ImageEnView1.IEBitmap);
Thanks. Pierre |
8 L A T E S T R E P L I E S (Newest First) |
pierrotsc |
Posted - Jan 14 2015 : 14:10:24 It may be hard but i may try to extract some lines and create a small program over the week-end. Thanks. |
xequte |
Posted - Jan 13 2015 : 21:17:37 Hi
Can you send us a small demo that shows the problem.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
pierrotsc |
Posted - Jan 13 2015 : 13:41:01 It is indeed set to false.Is that ok? |
xequte |
Posted - Jan 13 2015 : 13:20:28 HI Pierre
Is AutoUndo disabled?
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
pierrotsc |
Posted - Jan 13 2015 : 10:54:14 I found out why and i do not understand why the image becomes blank when i undo.
I had to comment these 2 statements that were located before the saveundo: Mainform.ImageEnVect.clear; Mainform.ImageEnVect.LayersClear;
My questions is why these 2 statements affect the saveundo? They are located before the command. Thanks. Pierre |
w2m |
Posted - Jan 12 2015 : 18:50:01 You are saving the undo twice... Mainform.ImageEnVect.Proc.SaveUndoCaptioned Mainform.ImageEnVect.Proc.SaveUndo(ieuImage)
Only save the undo one time...
Bill Miller Adirondack Software & Graphics Email: w2m@hughes.net EBook: http://www.imageen.com/ebook/ Custom Commercial ImageEn Development |
pierrotsc |
Posted - Jan 12 2015 : 18:36:38 This is what i have and it is not undoing: // Undo Mainform.ImageEnVect.Proc.ClearAllRedo; Mainform.ImageEnVect.Proc.SaveUndoCaptioned ('Apply Filter ' + IntToStr(Mainform.ImageEnVect.Proc.UndoCount)); Mainform.Undo_Btn.Hint := 'Apply ' + IntToStr(Mainform.ImageEnVect.Proc.UndoCount + 1); Mainform.ImageEnVect.Proc.SaveUndo(ieuImage); Mainform.ImageEnVect.IEBitmap.Assign(ImageEnView1.IEBitmap); Mainform.ImageEnVect.Update;
The undo button has this code: with ImageEnVect.Proc do begin SaveRedoCaptioned(UndoCaptions[0], ieuImage); // saves in Redo list Undo; ClearUndo; end; refreshUndoButtons;
When i do that, I get a blank image and not the original one i had before the assign command. Thanks for the help. Pierre |
xequte |
Posted - Jan 12 2015 : 18:05:46 Hi Pierre
No assignment is not automatically handled by undo. You would need to manually add it to the undo stack:
http://www.imageen.com/help/TImageEnProc.SaveUndo.html
Nigel Xequte Software www.xequte.com nigel@xequte.com |