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
 TImageEnView - OnLayerNotify/OnLayerNotifyEx event problems
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

MrDeveloper

Switzerland
17 Posts

Posted - Sep 30 2021 :  08:19:00  Show Profile  Reply
Hello

If you perform an undo/redo action, the OnLayerNotify/OnLayerNotifyEx event is fired with parameter event = ielAction. But how can I now query which action exactly fired this event? e.g. a property like GetLastAction etc.?

Addendum
There seems to be only one possibility to evaluate the event "OnActionExecute" before and to react to it, right?

Another problem
However, there is another problem that I have not yet been able to solve. When I delete a selected layer with the keyboard combination "Ctrl+X", the OnLayerNotifyEx with Action = ielRemoved is not fired. The keyboard key "Delete" works fine. Or is there another possibility here for the keyboard combination "Ctrl+X"?

Thanks!

xequte

38182 Posts

Posted - Sep 30 2021 :  17:52:52  Show Profile  Reply
Hi Kai

We'll add ielRemoved when cutting in the next update.

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

MrDeveloper

Switzerland
17 Posts

Posted - Oct 12 2021 :  07:06:01  Show Profile  Reply
Hi Nigel

Just to let you know, currently in the latest beta the following (I think) necessary changes are not yet included:

imageenview.pas

  // DELETE and CTRL
  if   AllowDelete and 
     ((sc = IEGlobalSettings().KeyboardShortcuts[iesDelete]) or  
      (sc = IEGlobalSettings().KeyboardShortcuts[iesCut])) and 
       not (loPreventLayerDelete in fLayerOptions) then   


These changes are necessary for the event to be fired with "ielRemoved", aren't they?

Thanks!
Go to Top of Page

xequte

38182 Posts

Posted - Oct 12 2021 :  17:03:19  Show Profile  Reply
Hi

No, that shouldn't be required. Are you not seeing ielRemoved being called after a Cut in the latest beta?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: