Tool-tips with Pushpins

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • taylorkand@gmail.com

    Tool-tips with Pushpins

    I am working on a map display which is linked to a database containing
    information on our trucks. I.E. Lat/Long, Customer, Truck number,
    Product, etc... I have a form with mappoint control and can get the
    map to display with many Mappoint pushpins at the locations of our
    trucks. What I am trying to do it set up tool-tips messages on the
    pushpins showing information from our database. However I can't
    figure out how to add a tool-tip to a pushpin. Please HELP!

    I'm working in C sharp, but suggestions in any language would be
    great!

    Thanks,
    Kyle
  • Gilles Kohl [MVP]

    #2
    Re: Tool-tips with Pushpins

    On Wed, 19 Mar 2008 13:10:15 -0700 (PDT), taylorkand@gmai l.com wrote:
    >I am working on a map display which is linked to a database containing
    >information on our trucks. I.E. Lat/Long, Customer, Truck number,
    >Product, etc... I have a form with mappoint control and can get the
    >map to display with many Mappoint pushpins at the locations of our
    >trucks. What I am trying to do it set up tool-tips messages on the
    >pushpins showing information from our database. However I can't
    >figure out how to add a tool-tip to a pushpin. Please HELP!
    >
    >I'm working in C sharp, but suggestions in any language would be
    >great!
    There's no tooltip functionality for MapPoint pushpins AFAIK, but you could
    set the "Note" property, e.g. like so:

    MapPoint.Locati on location =
    axMappointContr ol1.ActiveMap.G etLocation(47,-122, 0);
    MapPoint.Pushpi n thePin =
    axMappointContr ol1.ActiveMap.A ddPushpin(locat ion, "My pushpin");
    thePin.Note = "This is a pushpin note";
    thePin.BalloonS tate = MapPoint.GeoBal loonState.geoDi splayBalloon;

    Regards,
    Gilles [MVP].

    (Please reply to the group, not via email.
    Find my MVP profile with past articles / downloads here:
    http://www.gilleskohl.de/mvpprofile.htm)

    Comment

    • taylorkand@gmail.com

      #3
      Re: Tool-tips with Pushpins

      On Mar 19, 5:45 pm, "Gilles Kohl [MVP]" <no_email_avail able@wrote:
      On Wed, 19 Mar 2008 13:10:15 -0700 (PDT), taylork...@gmai l.com wrote:
      I am working on a map display which is linked to a database containing
      information on our trucks.  I.E. Lat/Long, Customer, Truck number,
      Product, etc...  I have a form with mappoint control and can get the
      map to display with many Mappoint pushpins at the locations of our
      trucks.  What I am trying to do it set up tool-tips messages on the
      pushpins showing information from our database.  However I can't
      figure out how to add a tool-tip to a pushpin.  Please HELP!
      >
      I'm working in C sharp, but suggestions in any language would be
      great!
      >
      There's no tooltip functionality for MapPoint pushpins AFAIK, but you could
      set the "Note" property, e.g. like so:
      >
               MapPoint.Locati on location =
      axMappointContr ol1.ActiveMap.G etLocation(47,-122, 0);
               MapPoint.Pushpi n thePin =
      axMappointContr ol1.ActiveMap.A ddPushpin(locat ion, "My pushpin");
               thePin.Note = "This is a pushpin note";
               thePin.BalloonS tate = MapPoint.GeoBal loonState.geoDi splayBalloon;
      >
         Regards,
         Gilles [MVP].
      >
         (Please reply to the group, not via email.
         Find my MVP profile with past articles / downloads here:
         http://www.gilleskohl.de/mvpprofile.htm)
      Thanks, I'll check into that and see how it goes!

      Kyle

      Comment

      Working...