MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Disabling the Direction sub window ?

This is a discussion on Disabling the Direction sub window ? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I want to disable the direction sub window that appear on part of map when the directions are processed. Any ...


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

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 11-21-2006
Junior Member
White Belt
 
Join Date: Nov 2006
Location: Marseille, France
Posts: 9
Question Disabling the Direction sub window ?

I want to disable the direction sub window that appear on part of map when the directions are processed.

Any one has the solution ?
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 11-21-2006
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 251
Re: Disabling the Direction sub window ?

Itinerary.Visible = False
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 11-22-2006
Junior Member
White Belt
 
Join Date: Nov 2006
Location: Marseille, France
Posts: 9
Question Re: Disabling the Direction sub window ?

Thanks for your answer, but Itinerary.Visible is not recognized on my VS 2005 (C# language)
Should I use a specific Using ?
I already use Using Mappoint.

I also zlready tried before posting this :
axMappointControl1.ItineraryVisible = false;
but, it didn't work neither.

Here is more of my code used :
Code:
           InitializeComponent();
       axMappointControl1.NewMap(MapPoint.GeoMapRegion.geoMapEurope);
       
     axMappointControl1.ItineraryVisible = false;
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 11-22-2006
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 251
Re: Disabling the Direction sub window ?

Possibly axMappointControl1.Object.ActiveMap.ItineraryVisib le = False
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 11-22-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: Disabling the Direction sub window ?

Hi,

No it is the activeX component itself that you have to address. This works here:
Code:
MP.ItineraryVisible = false;
MP is the name of the axMappointcontrol I use here. And yes I just copyd this from VS2005 and C#.
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 11-22-2006
Junior Member
White Belt
 
Join Date: Nov 2006
Location: Marseille, France
Posts: 9
Unhappy Re: Disabling the Direction sub window ?

That's what I did (look code below) but with no results...

Are we speaking about the sub window that is masking a part of the map ?

- Maybe I didn't insert the line at the good place ?
- Maybe I wrote lines that would affect the result ?

Well, I give you my full code (an evaluating program that I do to discover Mappoint).

Look only at blue line in the code.

Code:
   public partial class Form1 : Form
    {
        static public MapPoint.Map map;
        static MapPoint.Application app = null;
 

        private void axMappointControl1_BeforeClick(object sender, AxMapPoint._IMappointCtrlEvents_BeforeClickEvent e)
        {
            int nXCoord = e.x;
            int nYCoord = e.y;

            if (e.button == MapPoint.GeoMouseButtonConstants.geoRightButton)
            {
                e.cancel = true;
            }

            Location loc = map.XYToLocation(nXCoord, nYCoord);
            if (Location != null)
            {
            }
        }

        private void axMappointControl1_SelectionChange(object sender, AxMapPoint._IMappointCtrlEvents_SelectionChangeEvent e)
        {
            Pushpin pPrev = e.pOldSelection as MapPoint.Pushpin;
            Pushpin pCur = e.pNewSelection as MapPoint.Pushpin;

            if (pPrev != null)
            {
                pPrev.Highlight = false;
                // pPrev.Cut();
            }

            if (pCur != null)
            {
                pCur.Highlight = true;
            }
        }

        public Form1()
        {

            Process[] processes = Process.GetProcessesByName("MapPoint");
            foreach (Process proc in processes)
                proc.Kill();

            InitializeComponent();

            axMappointControl1.NewMap(MapPoint.GeoMapRegion.geoMapEurope);
            map = axMappointControl1.ActiveMap;
 
            app = map.Application;

            map.MapStyle = GeoMapStyle.geoMapStyleTerrain;

            object TOOLBAR_NAVIGATION = 2;

             axMappointControl1.Toolbars.get_Item(ref TOOLBAR_NAVIGATION).Visible = true;

            //axMappointControl1.PaneState = MapPoint.GeoPaneState.geoPaneRoutePlanner;


          axMappointControl1.ItineraryVisible = false;
 
            //map.AllowEdgePan = false;

            axMappointControl1.Units = MapPoint.GeoUnits.geoKm;


            axMappointControl1.BeforeClick += 
                new AxMapPoint._IMappointCtrlEvents_BeforeClickEventHandler(axMappointControl1_BeforeClick);


            axMappointControl1.SelectionChange += new AxMapPoint._IMappointCtrlEvents_SelectionChangeEventHandler(axMappointControl1_SelectionChange);

            //*************************************************
            // Création d'un point par géocodage
            //*************************************************

            MyAdresse ad1 = new MyAdresse();
            MyAdresse ad3 = new MyAdresse();
            MyAdresse ad4 = new MyAdresse();
            {

                ad1.sadAdx.sStreetAdresse = "18 rue hoche";
                ad1.sadAdx.sCity = "grenoble";

                //ad1.sadAdx.sStreetAdresse = "13 avenue hoche";
                //ad1.sadAdx.sCity = "paris";

                ad1.Geocode();
                ad1.pin = map.AddPushpin(ad1.loc, "AD1");

                ad3.sadAdx.sStreetAdresse = "1 rue kleber";
                ad3.sadAdx.sCity = "Grenoble";
                ad3.Geocode();
                ad3.pin = map.AddPushpin(ad3.loc, "AD3");

                ad4.sadAdx.sStreetAdresse = "1 rue Marcel Porte";
                ad4.sadAdx.sCity = "Grenoble";
                ad4.Geocode();
                ad4.pin = map.AddPushpin(ad4.loc, "AD4");
                
            }


            //*************************************************
            // Création d'une Pushpin à partir de X,Y en coord GPS
            //*************************************************

            MyAdresse ad2 = new MyAdresse();

            {
                ad2.loc = map.GetLocation(45.17994847, 5.723539487, 1);

                ad2.pin = map.AddPushpin(ad2.loc, "AD2");
                ad2.pin.Symbol = 4;
            }

            //ad2.loc.GoTo();
            //map.Altitude = 1.0;

            //*************************************************
            // Centrage de la carte 
            //*************************************************
            {
                ArrayList tloc = new ArrayList();
                tloc.Add(ad1.loc);
                tloc.Add(ad2.loc);
                Location locCenter = map.Union(tloc.ToArray());
                locCenter.GoTo();
                map.Altitude = 2.0;
            }


            //*************************************************
            // Itinéraire entre deux points 
            //*************************************************
            if (0==0)
            {
                MapPoint.Route rt = map.ActiveRoute;
                Waypoint wp1 =  rt.Waypoints.Add(ad1.loc, "AD1");
                wp1.SegmentPreferences = GeoSegmentPreferences.geoSegmentShortest;

                rt.Waypoints.Add(ad2.loc, "AD2");
                rt.Waypoints.Add(ad3.loc, "AD3");
                rt.Waypoints.Add(ad4.loc, "AD4");

                //rt.Waypoints.Optimize();
                rt.Calculate();

            }
        }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 11-22-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: Disabling the Direction sub window ?

Hi,

you have to call it aftter Calculate method.
I assume you dont have a compile time error but just no result ? Please be more clear in future.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 11-22-2006
Junior Member
White Belt
 
Join Date: Nov 2006
Location: Marseille, France
Posts: 9
Thumbs up Re: Disabling the Direction sub window ?

Bingo !

That was the solution.
Place the line at the good place.

Thanks a lot and sorry not to be clear enough. I'm french and not fluent.
Thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 11-23-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: Disabling the Direction sub window ?

Quote:
Thanks a lot and sorry not to be clear enough. I'm french and not fluent.
Thanks again
Ok, me too not englisch spoken
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
direction, disabling, window


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/disabling-direction-sub-window-5380.html

Posted By For Type Date
Formatting coordinates with DmsFormat, linking to weather data, three new utilities - MP2K Update Archives - MP2K Magazine This thread Refback 11-23-2006 12:05 PM
Microsoft MapPoint 2006 - MP2K Magazine This thread Refback 11-21-2006 11:14 PM

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
Disabling closing of MapPoint? MD2000 MapPoint 2006/2009 Discussion 1 05-09-2005 05:57 PM
Disabling the Save Pop up when application closes Anonymous MapPoint 2006/2009 Discussion 2 02-10-2005 11:58 PM
Disabling cut option Anonymous MapPoint 2006/2009 Discussion 0 07-09-2004 04:05 AM
disabling deleting pushpin Anonymous MapPoint 2006/2009 Discussion 1 05-28-2004 09:14 AM
Disabling Cntl Key Functions from MapPoint Control Anonymous MapPoint 2006/2009 Discussion 2 03-18-2003 07:06 AM


All times are GMT -5. The time now is 12:08 PM.


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


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