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
 Zoom In limitation blocks Zoom Out at 100%

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
aleatprog Posted - Dec 22 2018 : 08:34:02
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
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 24 2018 : 14:08:26
Nice work, Al,

You have a great Xmas too.

Nigel
Xequte Software
www.imageen.com
aleatprog Posted - Dec 22 2018 : 09:02:39
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