Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
I was wanting to know if anyone knows the code or a work around to create a Middle mouse button pan, instead of the click and drag. I am trying to come up with a smooth pan system so that we can navigate around large aerial images. The general function would idealy work the as the default windows pan function (middle mouse button) when the you view an image which is over screen size in resolution.

Any help would be great
 
Posts: 10 | Registered: April 29, 2007Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Hi John,

Currently the VMP has no way to detect MouseMiddleDown. It can only detect right and left mouse buttons and mouse wheel roll. I would advise thinking of another way of interacting that will be suitable. When you have decided, I can help you figure it out.

Regards
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
The middle mouse button isn't extremely important it is more the dynamic smooth panning function as opposed to the general click and drag which I am interested in. This could be linked to the normal left mouse button click and hold say if it was held down. I'm not sure if it is possible to create a code which will work with VPM that you can click and then hold and the further you drag from your inital clicking position the faster it scrolls.

Thanks
John
 
Posts: 10 | Registered: April 29, 2007Reply With QuoteEdit or Delete MessageReport This Post
Viewpoint Sr. Expert
Member
Picture of viewbrian
Posted Hide Post
I think you can do what you are looking for. I’d imagine it would be something like this: catch a MouseDrag event or MouseDown event to trigger an animator that does the zooming but also scales the speed of the animator with an additive value so the longer the animator runs the faster it zooms. I think the interactor that catches the Mouse event would need to keep checking for the event and when it no longer gets the event it would stop the animator that is zooming and reset the scale. It’s a little tricky but I think doable, sorry I don’t have the time to test it.
It’s been years since I’ve done ZoomView stuff so there maybe some limitations I’ve forgotten and I’m not sure how easy it is to affect the default Zoom but give it a try and let us know.

~B
 
Posts: 25 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Seen as the Middle Mouse Button cannot be actioned. Is there a way to program say the space bar to activate "pan function" and then drag with your mouse, I might be off with the fairies ???

Thanks for the help

John
 
Posts: 10 | Registered: April 29, 2007Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Sorry for the late response. Here you go. This does what you seek.

http://slaw.viewpoint.com/users/cbrown/zoomview.zip

Regards
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Excellent Smile thank you for your response
 
Posts: 10 | Registered: April 29, 2007Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community