Community of VE/MapPoint Users and Developers
This is a discussion on How to hide Direction panel after call ActiveRoute.Calculate()? within the Development forums, part of the MapPoint 2006/2009 Discussion category; I have an application doing auto routing. The client wants only the route being displayed, not the driving direction panel. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to hide Direction panel after call ActiveRoute.Calculate()? |
| ||||
| Re: How to hide Direction panel after call ActiveRoute.Calculate()?
The above should do what you want, but the PaneState property is also worth a look for similar control of the other panes. eg. oApp.PaneState = geoPaneNone only displays the map. The full list of options is in the documentation Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
| Re: How to hide Direction panel after call ActiveRoute.Calculate()?
Thanks John and Winwaed for your replies. I tried both method. However, directions panel cannot be closed or hide by set PaneState = geoPaneNone. The ItineraryVisible = False only works when called after ActiveRoute.Calculate(). The problem is still, when calling ActiveRoute.Calculate and then close the panel by set ItineraryVisible=false, the map window flicks annoyingly. On slower machine, you will still see the direction panel pops up and close. |
| |||
| Re: How to hide Direction panel after call ActiveRoute.Calculate()?
The help file says Route object has only two methods. I cannot find any other useful API that may lead to a solution. Probably we have to live with it. We like MapPoint and unfortunately, it does give us flexibilities. |
| ||||
| Re: How to hide Direction panel after call ActiveRoute.Calculate()?
Yes I think you are stuck with what you have. ItineraryVisible is the right/best solution - I was just mentioning the other as it was similar and might be useful with your application. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
![]() |
| Tags |
| activeroutecalculate, call, direction, hide, panel |
| ||||
| Posted By | For | Type | Date | |
| The MapPoint Web Service Helper - Part I: Windows and Web Applications - MapPoint Articles - MP2K Magazine | This thread | Refback | 09-02-2008 04:27 PM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 08-29-2008 03:51 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Application cannot call MP | joe1156 | MapPoint 2006/2009 Discussion | 3 | 05-24-2007 08:29 AM |
| How to call symbol by name rather than ID. | PMACAFEE | MapPoint 2006/2009 Discussion | 2 | 11-30-2006 11:12 PM |
| How to Calculate 2 itineraries without clearing ActiveRoute | Anonymous | MapPoint 2006/2009 Discussion | 2 | 12-13-2004 10:54 AM |
| How to call add-in from vb | Anonymous | MapPoint 2006/2009 Discussion | 0 | 12-23-2003 02:56 AM |
| route/activeroute | Anonymous | MapPoint 2006/2009 Discussion | 0 | 09-22-2002 01:40 PM |