Community of MapPoint and Virtual Earth 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 so I've ...
| |||||||
| Today's Posts | Twitter Feed | 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 |
![]() |
| Tags |
| pan, programmatically, switch, zoom |
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 | 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 |
Hurghada Holiday
Enjoy sunny Egypt when you book a Hurghada holiday through UlookUbook at a good price!