Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Switch between pan and zoom programmatically 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 |
| |||
|
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 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |
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.