I need to take a specific action when ImageEnView loads a specific image type:
• The path and file-name/extension must be known • The action must be taken BEFORE the image is effectively loaded in ImageEnView • It must be possible to abort the loading of the image
I have researched several approaches:
• ImageEnView.OnImageLoaded: As the name says, it probably occurs AFTER the image has been effectively loaded. And there is no way to get the image details and to abort the loading. • Clicking on the ImageEn Load toolbar-button: Same problem as above. And the OnActionExecute occurs AFTER OnFinishWork. • OnImageChangeEx: Occurs AFTER
Unfortunately, at this time there is no way around that. By design, OnActionExecute occurs AFTER the action has completed (to allow user to apply UI changes). There is no before action event.
At some point we will allow custom items on the toolbar. In the meantime I think you would be better to craft your own toolbar.