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
 ImageEnView.OnDrawCanvas is triggered twice on manually setting ImageEnView.Zoom

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
BBriefs Posted - Dec 17 2025 : 05:07:51
Hello,

I have a problem or maybe a behavior that I don't fully understand in an ImageEnView, for which I deactivated the automatic zoom function and instead handle zooming with the OnMouseWheelUp/Down-events, in which the ImageEnView.Zoom is set manually.
Also there is an OnDrawCanvas-event, in which things are done.

When I now scroll per mouse wheel, the respective event is triggered, Zoom is set and OnDrawCanvas is triggered as expected.
However, after a short fraction of a second, maybe 200-400 ms, in which the program continues to run, OnDrawCanvas is triggered another time, which in this particular program screws things up.

To be sure I isolated the ImageEnView into an empty project, gave it the two mousewheel-events, which do nothing but setting Zoom, and an OnDrawCanvas, which does nothing except being triggered, and the behavior is the same: OnDrawCanvas is triggered immediately on Zooming and again after a short moment.

Is this normal behavior which I have to work around or am I probably doing something wrong in terms of settings or usage of OnDrawCanvas?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 17 2025 : 21:53:15
Hi

This sounds like you are using one of the delayed quality painting options (which are enabled by default to improve performance).

See:

http://www.imageen.com/help/TImageEnView.DelayZoomFilter.html
http://www.imageen.com/help/TImageEnView.LayersFastDrawing.html

Nigel
Xequte Software
www.imageen.com