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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Undo question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
497 Posts

Posted - Jul 08 2022 :  11:09:27  Show Profile  Reply
Something is puzzling me.

i use

    if ActiveImageEnView().Proc.CanUndo then
    begin
      MiUndo.Caption := 'Undo ' + ActiveImageEnView().Proc.UndoCaptions[0];
      showmessage(ActiveImageEnView().Proc.UndoCaptions[0]);
    end
    else
      MiUndo.Caption := 'Undo ';


after each command but when i use

      ShowTempHourglass;
      ActiveImageEnView().LayersMergeAll(True);
      ActiveImageEnView().Update();


It always shows the previous command i executed and not the layermegeall. How is taht possible ?

Maybe i have something that messes that up
Pierre

xequte

38191 Posts

Posted - Jul 11 2022 :  16:06:02  Show Profile  Reply
Hi Pierre

Have you specified loAutoUndoChangesbyCode in:

https://www.imageen.com/help/TImageEnView.LayerOptions.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Jul 11 2022 :  16:57:42  Show Profile  Reply
Thanks Nigel, i did not and now everything works fine.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: