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

howto get balloon to show on mouseover pushpin

This is a discussion on howto get balloon to show on mouseover pushpin within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I was wondering if there is a way, programmatically, to make the balloon show up when a user puts ...

  1. #1
    discostu is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    9

    howto get balloon to show on mouseover pushpin

    Hi, I was wondering if there is a way, programmatically, to make the balloon show up when a user puts the mouse over a pushpin. Currently, the user must right click and click "Show Information." Myapp is an MFC app (c++).

    Thanks,
    Stu

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

    Sure is possible. In OnMouseOver you have x.y coordinates, so you can calculate over there the lat,long coordinates. If you hva a list of pushpins you can check if the match within a tolerance a pushpin coordinate. If match then display balloon.

    Note that this approach can be time consuming, specially if you have a lots of pushpins.

    Note also you have to make a little algoritm with the altitude, because "when" to display balloon of "witch" pushpin is pmortand if they are close together.

  3. #3
    ofergal is offline Junior Member White Belt
    Join Date
    Sep 2009
    Posts
    2

    Re: howto get balloon to show on mouseover pushpin

    Care to give a code example?
    Can this be done when creating a dataset?

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

    Re: howto get balloon to show on mouseover pushpin

    Hi,

    I have no code example at hand. but basically you need MouseMove event. You need to keep an array of all your pushpins. in Mousemove event you have x and y coordinates. then you can calculate if you come near to a push pin.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Information Balloon Color
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-31-2005, 08:00 PM
  2. Format balloon shape
    By johncon in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-16-2005, 02:57 PM
  3. Displaying Balloon on Pushpin
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 11
    Last Post: 01-31-2005, 03:53 PM
  4. Turning on all pushpin Balloon sTate
    By Anonymous in forum Products: Pushpin Tool, Single State Mapper
    Replies: 1
    Last Post: 02-18-2004, 12:24 PM
  5. balloon display
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-03-2003, 04:15 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