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
 Zoom In limitation blocks Zoom Out at 100%
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aleatprog

122 Posts

Posted - Dec 22 2018 :  08:34:02  Show Profile  Reply
Hi,

I limited ImageEnView zooming in the range min 15% - max 1000%. Inside the range 15-1000 the mouse acts correctly allowing to zoom in up to 1000% and to zoom out down to 15%.

Values major to 1000 are limited using the ZoomIn event:

if NewZoom > 1000 then NewZoom := 1000;

Problem: Once the mouse zooms outside the maximum range (e.g. 1050%), it's not longer possible to zoom out down to 15% but it blocks at 100%.

May you tell me what causes this behaviour?

Thank you in advance,
Al

aleatprog

122 Posts

Posted - Dec 22 2018 :  09:02:39  Show Profile  Reply
Found the answer:

MouseWheelParams.Variation := iemwAbsolute;
MouseWheelParams.Value := 100;

Therefore, the limitation set the zoom rate to 1000% and zooming out blocked at 100% for its Value.

Everything's fine. Have a nice Xmas. : )

Al
Go to Top of Page

xequte

38182 Posts

Posted - Dec 24 2018 :  14:08:26  Show Profile  Reply
Nice work, Al,

You have a great Xmas too.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: