MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Switch between pan and zoom programmatically

This is a discussion on Switch between pan and zoom programmatically within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm developing an application which uses MapPoint activex control. I don't want any toolbars in the mappoint control so I've ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-20-2006
Junior Member
White Belt
 
Join Date: Sep 2006
Posts: 6
Switch between pan and zoom programmatically

I'm developing an application which uses MapPoint activex control.
I don't want any toolbars in the mappoint control so I've disabled them, anyway when I'm over the control with the mouse I would like to pan at the same way I do when I select the Pan instrument in the Navigation Toolbar. I would like also to use the function zoom area as I can do when the zoom instrument in the navigation toolbar is selected. I should switch between these two functionality (zoom and pan) through buttons which are outside of the MapPoint control... so the question is..
can I switch programmatically between the PAN instrument and the ZOOM instrument?

Thanks in advance for anyone can give me help.
masty
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-20-2006
Junior Member
Yellow Belt
 
Join Date: Apr 2006
Posts: 20
Hi masty,

You can use the DragBehavior property to switch between pan and zoom.

So, assuming your control is called mapCtl use

mapCtl.ActiveMap.DragBehavior = MapPoint.GeoDragBehavior.geoDragHand (for pan)

and

mapCtl.ActiveMap.DragBehavior = MapPoint.GeoDragBehavior.geoDragBox (for zoom)

Hope this helps...
__________________
John Lewis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-21-2006
Junior Member
White Belt
 
Join Date: Sep 2006
Posts: 6
OK! It works perfectly.

Thanks a lot jlewis!

bye!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
pan, programmatically, switch, zoom


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
How fast can one switch from Mappoint to Mappoint Webservice Wilfried MapPoint Web Service and Virtual Earth 2 01-13-2009 12:46 PM
Switch-To, Application Busy Error with VB.NET mrobold MapPoint 2006/2009 Discussion 0 12-29-2003 04:40 PM
Zoom In and Zoom Out event detection victorf MapPoint 2006/2009 Discussion 2 10-22-2003 12:56 AM
How can I switch from Mappoint2002 Europe to America C++ cpinatel MapPoint 2006/2009 Discussion 0 06-16-2003 03:56 AM
Is there a way to programatically switch the mouse.... Anonymous MapPoint 2006/2009 Discussion 2 07-19-2002 09:14 AM


All times are GMT -5. The time now is 04:18 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Hurghada Holiday
Enjoy sunny Egypt when you book a Hurghada holiday through UlookUbook at a good price!



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59