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
 TImageEnView - OnLayerNotify/OnLayerNotifyEx event problems

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
MrDeveloper Posted - Sep 30 2021 : 08:19:00
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!
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 12 2021 : 17:03:19
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
MrDeveloper Posted - Oct 12 2021 : 07:06:01
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!
xequte Posted - Sep 30 2021 : 17:52:52
Hi Kai

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

Nigel
Xequte Software
www.imageen.com