ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnView.OnDrawCanvas is triggered twice on manually setting ImageEnView.Zoom
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

BBriefs

Germany
5 Posts

Posted - Dec 17 2025 :  05:07:51  Show Profile  Reply
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?

xequte

39297 Posts

Posted - Dec 17 2025 :  21:53:15  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: