MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




How to hide Direction panel after call ActiveRoute.Calculate()?

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. ...


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

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



Click here to register

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-28-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2007
Posts: 22
How to hide Direction panel after call ActiveRoute.Calculate()?

I have an application doing auto routing. The client wants only the route being displayed, not the driving direction panel. The problem is that ActiveRoute.Calculate() call always brings up the directopn panel. I have to close the panel by code and this causes screen to flash. Does any one knows a better way to hide the direction panel by code?
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 08-29-2008
Member
Yellow Belt
 
Join Date: Oct 2007
Posts: 32
Re: How to hide Direction panel after call ActiveRoute.Calculate()?

I think this may be what you wanted..

oApp.ItineraryVisible = False

(oApp is the Mappoint Application)

rgds
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 08-29-2008
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,142
Blog Entries: 22
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
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 08-29-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2007
Posts: 22
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 08-29-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2007
Posts: 22
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 08-30-2008
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,142
Blog Entries: 22
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
See the Geoweb Guru for online mapping
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
activeroutecalculate, call, direction, hide, panel


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/how-hide-direction-panel-after-call-activeroute-calculate-8362.html

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 03:27 PM
The Magazine for MapPoint - MP2K Magazine This thread Refback 08-29-2008 02:51 AM

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
Application cannot call MP joe1156 MapPoint 2006/2009 Discussion 3 05-24-2007 07:29 AM
How to call symbol by name rather than ID. PMACAFEE MapPoint 2006/2009 Discussion 2 11-30-2006 10:12 PM
How to Calculate 2 itineraries without clearing ActiveRoute Anonymous MapPoint 2006/2009 Discussion 2 12-13-2004 09:54 AM
How to call add-in from vb Anonymous MapPoint 2006/2009 Discussion 0 12-23-2003 01:56 AM
route/activeroute Anonymous MapPoint 2006/2009 Discussion 0 09-22-2002 12:40 PM


All times are GMT -5. The time now is 01:31 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

Bodrum Holiday
Check out the picturesque towns on your Bodrum holiday... Book through UlookUbook!

Travel agents...
Find the best travel agents online by reading the reviews of other customers.



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