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
 TImageEnView - mouse wheel / zoom behavior
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

DiBase

Germany
5 Posts

Posted - Mar 24 2022 :  17:36:56  Show Profile  Reply
Standard behavior when using mouse wheel (over a TImageEnView component) is:

- mouse wheel up: zoom out
- mouse wheel down: zoom in

This is opposite to scroll behavior of standard Windows picture viewer.

Is there an easy way to invert the mouse wheel action?

- Dirk from Hamburg/Germany

P.S.: ImageEn 9.2.5

xequte

38610 Posts

Posted - Mar 24 2022 :  20:17:28  Show Profile  Reply
Please use:

// Invert the direction to resemble that of Windows Explorer
ImageEnView1.MouseWheelParams.InvertDirection := True;


https://www.imageen.com/help/TIEView.MouseWheelParams.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

DiBase

Germany
5 Posts

Posted - Mar 29 2022 :  14:38:10  Show Profile  Reply
Thanks, Nigel.

It works now, but only when I add the line in my source code.
When changing the parameter in Object Inspector of IDE it has no effect.

- Dirk
Go to Top of Page

xequte

38610 Posts

Posted - Apr 03 2022 :  19:23:22  Show Profile  Reply
Hi Dirk

You are saying that when you change InvertDirection of MouseWheelParams for a TImageEnView in the Object Inspector it has no effect?

I cannot reproduce that. When you close and reopen the project has the InvertDirection property been reset?

It may be an issue in v9.2.5.

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