Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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?
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.