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
 Disable MouseWheel Zooming
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
224 Posts

Posted - Jan 23 2013 :  03:15:16  Show Profile  Reply
Hi

Nice feature that it is I would like to disable zooming with the mouse wheel. I am using the wheel to flip though layers that I have pre-loaded in a TImageEnView component. That works fine I have some code in the OnMouseWheel event and before I come out I set the handled to true, which I would have thought would have cancelled out the zooming. I thought it might be in the MouseInteract properties but I've set them all false and still get the inbuilt zooming.

There must be a way to disable this but I can't find it can anyone help me out here.

Bruce.

w2m

USA
1990 Posts

Posted - Jan 23 2013 :  06:46:10  Show Profile  Reply
Set the TIEMouseWheelParamsAction = (iemwNone, iemwVScroll, iemwZoom) and remove your code in the OnMouseWheel event.

procedure TForm1.FormCreate(Sender: TObject);
begin
  ImageEnView1.MouseWheelParams.Action := iemwNone; 
end;

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Jan 25 2013 :  08:06:01  Show Profile  Reply
Thanks Bill
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: