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
 TImageEnVect.Proc.Undo not working as expected

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
yogiyang Posted - Jul 12 2016 : 10:59:48
Hello,

I am using following code for automatically managing undo in TImageEnVect.

ImageEnVect.LayerOptions := [loAllowMultiSelect, loAutoUndoLayerChanges];
ImageEnVect.Proc.UndoLimit := 999;
ImageEnVect.Proc.AutoUndo := True;
ImageEnVect.ForceALTkey := True;


If I move a layer and resize it then then call
ImageEnVect.Proc.Undo()

It will only undo the last action.

If I repeatedly call this it will not have any effect.

Why?

Again if I delete a Layer and then call undo it is not working...Why?

Technically it should work.

Yogi Yang
1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Jul 13 2016 : 16:13:13
I added undo to the layers demo and this seems to work with auto undo:
procedure Tfmain.Undo1Click(Sender: TObject);
begin
  ImageEnView1.Proc.Undo();
  ImageEnView1.Proc.ClearUndo;
  Undo1.Enabled := ImageEnView1.Proc.CanUndo;
end;

Undo only seems to work when a layer is moved or resized, but it does not work if a layer is removed.
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development