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
 Intercept the image-loading process?

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
PeterPanino Posted - Mar 03 2021 : 11:41:22
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

Any idea?
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 14 2021 : 01:13:26
Hi Peter

This will be possible in 10.0 using TImageEnToolbar.OnActionExecute.

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Mar 13 2021 : 15:56:08
Would it be possible to implement an additional OnBeforeActionExecute event to get the file name BEFORE the file is loaded?
xequte Posted - Mar 07 2021 : 19:59:25
Hi Peter

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.



Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Mar 04 2021 : 04:49:45
Confirmed: ImageEnView.OnActionExecute with Sender is TImageEnViewPromptToOpen occurs AFTER the image is already loaded and DISPLAYED!

I need to intercept TImageEnViewPromptToOpen.OnExecute when the user clicks the OPEN toolbar-button BEFORE the image is loaded!