Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

Access the GPS Pane via C#

This is a discussion on Access the GPS Pane via C# within the MapPoint Desktop Discussion forums, part of the Map Forums category; One of the cool feature of MP 2006 was the improve GPS tracking and the all new Voice Directions. That ...

  1. #1
    srogillio is offline Junior Member White Belt
    Join Date
    Oct 2006
    Location
    austin, tx
    Posts
    3

    Access the GPS Pane via C#

    One of the cool feature of MP 2006 was the improve GPS tracking and the all new Voice Directions. That was a GOOD improvement. The BAD is the API does not provide a new enumeration for GeoPaneState So after some reading and surfing I found some VB6 code from Sergiy Pavlov I used SPY++ to write a small class that toggle the GPS Pane on and off. From this sample code you should be able to access addition MP features that are not included in the API. To find other features, open MapPoint 2006 and then start SPY++. Use the Find Window tool and then start loging on that window. However be sure to limit the logging to only the WM_COMMAND unless you are interested in other messages.

    After I open MP 2006 and type [ctrl]A. The GPS panel appear and SPY++ logs

    00290B60 S WM_COMMAND wNotifyCode:1(sent from accel) wID:35037

    Now I have the code to submit to toggle the GPS pane

    publicvoid ToggleGPSPane()
    {
    if (this.myMpHandle != 0)
    {
    SendMessage(
    this.myMpHandle, WM_COMMAND, SHOW_GPS_PANE, 0);
    }
    }


    where
    privateconstint WM_COMMAND = 0x0111;

    privateconstint SHOW_GPS_PANE = 35037;

    The attach code should compile and be a starter for additional work.

    Enjoy
    Scott
    Attached Files Attached Files

  2. #2
    renatoa is offline Junior Member Yellow Belt
    Join Date
    Feb 2006
    Posts
    28

    Re: Access the GPS Pane via C#

    I succeeded to make this work, but everything in the GPS pane is dimmed, including "Start GPS tracking" checkbox...
    Pressing "Configure GPS..." and nothing happens.
    Any idea ?

    Renato

  3. #3
    srogillio is offline Junior Member White Belt
    Join Date
    Oct 2006
    Location
    austin, tx
    Posts
    3

    Re: Access the GPS Pane via C#

    Unfortunately that is the road block I hit after I posted the original message. I worked on this for quite awhile with no success. I am thinking when the GPS pane initializes it check whether to see if the parent is the MapPoint exe or the 'control' and behaves differently (disabled) if the 'control' is the parent.

    If you are able to get past this please post your solution.

    Scott

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. hide Legend and overview Pane
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-11-2004, 10:10 AM
  2. Show calculate pane
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-04-2004, 07:02 AM
  3. objRoute.Calculate method displays directions pane....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-26-2002, 02:52 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81