MapPoint Forums

MapForums

Community of VE/MapPoint 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 ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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: 17
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


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 0 10-26-2005 11:21 AM
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 10:12 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Madeira Flights
The historic features of Madeira are complimented by top-notch facilities and plenty of water sports activities. Book Madeira flights online today.

Best Travel Agent
Travel Counsellors was recently voted the UK's Best Travel Agent at the Guardian Unlimited travel awards. Book your travel with an award winning travel agent.

Holidays in Italy
Holidays in Italy boast some stunning countryside as well as a beautiful coastline. You can even visit an active volcano like Stromboli or Etna. Book at dealchecker.co.uk.

Holidays to Bahamas
Choose from a number of extraordinary holidays to the Bahamas at The Holiday Place. See pictures of these beautiful islands online.

Turkey
Before booking a holiday to Turkey check out the ULookUBook travel guide. Find out about the rich culture in Turkey before you go there to help you to make the most of your holiday.

Travel In
Travel.co.uk is the one you are looking for when checking out price comparison sites, so that you can travel in the way you choose.

Cheap Holidays to Gran Canaria
Book a flight to the Canary Islands! View information on cheap holidays to Gran Canaria online at On The Beach.


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