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

Displaying a Tool Tip when hovering over a pushpin

This is a discussion on Displaying a Tool Tip when hovering over a pushpin within the MapPoint Desktop Discussion forums, part of the Map Forums category; Greetings, Does anyone know how to temporarily display a tool tip, or floating text, when the mouse is over a ...

  1. #1
    BobFromBoston is offline Senior Member Green Belt
    Join Date
    Jul 2005
    Posts
    128

    Displaying a Tool Tip when hovering over a pushpin

    Greetings,

    Does anyone know how to temporarily display a tool tip, or floating text, when the mouse is over a given symbol or pushpin? I know how to use balloons, but for a congested map, they just get in the way. I'd much rather see them appear when the user's hovering the mouse cursor above it, and see them disappear when the user moves the mouse.

    Does anybody know how to do this?

    Thanks,
    Bob

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

    Yes you can set the Note or so when the mouse move over it. To know when the mouse move over it you have to install an event handler in OnMouseMove event.

    You have to keep an array of all the xy positions of all the pushpins, and in MouseMove you can check if you are nearby or over one of the pushpins. If so you take according action.

    Note that you have to optimize this code for speed as thsi event handler is called thousands of times a second.

  3. #3
    stephen kilbee's Avatar
    stephen kilbee is offline Junior Member Yellow Belt
    Join Date
    Nov 2002
    Posts
    18
    Hi,

    You could try clicking Tools, Options - then tick the check box against Show Data Tips.
    It might be ok for what you need.

    Regards

    Stephen

  4. #4
    citrix_99301's Avatar
    citrix_99301 is offline Junior Member Yellow Belt
    Join Date
    Mar 2006
    Posts
    17

    Displaying a Tool Tip when hovering over a pushpin

    How exactly do you capture the Lat/Lon or X/Y coordinates of the pushpin?

    Or, is it possible to create a location array and fill that with the pushpin locations? I haven't figured out how to do this either.

    Thanks for any help you can give.

    Andre Ranieri

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

    A pushpin has a Location object. To know the lat/long coordinates of this Location you can use CalcPos routine you find on this forum: http://www.mp2kmag.com/articles.asp?...xtract.lat.lon

    To find Lat/Long coordinates from out of X/Y points you can use XYToLocation method.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pushpin Tool
    By davidb in forum Products: Pushpin Tool, Single State Mapper
    Replies: 5
    Last Post: 03-19-2010, 01:32 PM
  2. Pushpin Tool - Wish List Wanted for next version
    By John Meyer in forum News and Announcements
    Replies: 7
    Last Post: 11-21-2008, 09:08 AM
  3. Download Trial Pushpin Tool
    By wadams in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-18-2005, 09:27 AM
  4. Displaying Balloon on Pushpin
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 11
    Last Post: 01-31-2005, 03:53 PM
  5. PUSHPIN TOOL
    By gsc1ugs in forum Products: Pushpin Tool, Single State Mapper
    Replies: 10
    Last Post: 03-07-2003, 12:08 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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96