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 2 of 2

pushpin tooltip

This is a discussion on pushpin tooltip within the MapPoint Desktop Discussion forums, part of the Map Forums category; Is it possible to have a tooltip on pushpin? I have the following code but couldn't find a way to ...

  1. #1
    menaka.ca is offline Junior Member White Belt
    Join Date
    Oct 2006
    Posts
    2

    Angry pushpin tooltip

    Is it possible to have a tooltip on pushpin?

    I have the following code but couldn't find a way to create a tooltip onMouseOver.

    Pushpin[] myPushPins = newPushpin[fnrs.Results.Length + 2];
    for(int i=2; i<fnrs.Results.Length + 2;i++)
    {
    myPushPins[i] =
    newPushpin();
    myPushPins[i].PinID =
    "pin" + i.ToString();
    myPushPins[i].Label = fnrs.Results[i-2].FoundLocation.Entity.DisplayName;
    myPushPins[i].IconName =
    "RedCircle" + (i-1).ToString();
    myPushPins[i].IconDataSource =
    "MapPoint.Icons";
    myPushPins[i].LatLong =
    newLatLong();
    myPushPins[i].LatLong.Latitude = fnrs.Results[i-2].FoundLocation.LatLong.Latitude;
    myPushPins[i].LatLong.Longitude = fnrs.Results[i-2].FoundLocation.LatLong.Longitude;
    myPushPins[i].ReturnsHotArea =
    true;



    //Add locations table rows
    tr = newTableRow();
    tc =
    newTableCell();
    string addressstring = fnrs.Results[i-2].FoundLocation.Address.AddressLine + ", " + fnrs.Results[i-2].FoundLocation.Address.PrimaryCity + ", " + fnrs.Results[i-2].FoundLocation.Address.Subdivision + " " + fnrs.Results[i-2].FoundLocation.Address.PostalCode;
    tc.Controls.Add(
    newLiteralControl(((i-1).ToString() + ". " + addressstring)));
    tr.Controls.Add(tc);
    locationstable.Controls.Add(tr);
    }

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    In MouseMove event of the Map you can calculate if mouse pointer is near to a PushPin. Then you can display tooltip yourself.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ASP.NET Tooltip vs Click to Zoom
    By Penny in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-28-2004, 06:53 PM
  2. Creating a tooltip on a map
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-20-2004, 08:09 AM
  3. Finding Pushpin Name by clicking on the Pushpin?(MP 2002)
    By NickSP in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-10-2003, 01:11 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