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
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Displaying Balloon on Pushpin

This is a discussion on Displaying Balloon on Pushpin within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi I am trying to change the orientation of Balloons (Up-right, up-left, Down-right, Down-left) when displayed on a pushpin. I ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Displaying Balloon on Pushpin

    Hi

    I am trying to change the orientation of Balloons (Up-right, up-left, Down-right, Down-left) when displayed on a pushpin.

    I see it is possible on MapPoint 2004 but can't seem to program it using VB.NET

    Thank you very much.
    Sany

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

    I cannot find anything in the help for this. Which methods are trying to change orientation ?

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Hi Wilfried

    When you write:

    pp = map.AddPushpin(oLoc)
    pp.BalloonState = MapPoint.GeoBalloonState.geoDisplayBalloon
    if pp is a pushpin

    the Balloon is printed on a random
    I want to printed where it hides anything.
    Other than this, i do not know any methods

    Thanks,
    Sany

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    On MapPoint 2004,

    you just need to right click on the pushpin
    to choose the orientation of the Ballon

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

    Yes I see now. But it seems that the Orientations is not made public. An alternative is maybe display a text box, and connect it with a line to the pushpin.

  6. #6
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Ok Wilfried

    Thanks, it is a shame this function is not public

    Sany

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

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

    Re: Displaying Balloon on Pushpin

    Hi Sany,

    I just needed to popup window in mappoint, did not found a method and did a workaround by sending a keyboard message. Certainly I remembered your post and tryed it out. It works well but disavantage is that you see a small flikker where balloon first pops up Anyway maybe this is workaround for you:

    Code:
                PP.Select();
                Win32.keybd_event(93, 0, 2, 0);          // popup window
                Win32.keybd_event((byte)'O', 0, 0, 0);   // Orientation
                Win32.keybd_event((byte)'L', 0, 0, 0);   // Lower right
    As for the Win32 call is P/Invoke for win32 API. If you need example then just ask it

  9. #9
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Hi Wilfried

    First of all thanks very much for your research
    Unfortunatelly i haven't understood a thing because i don't know win32 API
    I am using VB. NET to code and i don't know how ths launch these API.

    Best Regards;
    Sany

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

    You will understeand soon You need this in using clause:

    Code:
    using System.Runtime.InteropServices;   // needed to call external application (winAPI dll)
    I think in VB it is 'imports'. This is the complete class (with only one functions, but you can add others later if needed:

    Code:
        public class Win32
        {
            [DllImport("User32.dll")]
            public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
        }
    You can easy translate that to VB because you know the syntax probably mutch better thatn me Something like this (I think):

    Code:
            <DllImport&#40;"User32.dll"&#41;> 
            Public Shared Procedure keybd_event&#40;ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags as Int, ...&#41;
    So in fact that's all to do. Once you have the class whitch I called Win32, but you give it the name you want, and you need any of the win32 API functions you just add it and it works. To call this one it is just as in my previous example which you now probably better understead.

    If there is still questios just fire them. There are enough VB.NET people here to assist you

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. howto get balloon to show on mouseover pushpin
    By discostu in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 12-09-2009, 08:48 AM
  2. Displaying a label with each pushpin
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 02-25-2007, 10:46 AM
  3. Displaying a Tool Tip when hovering over a pushpin
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 03-18-2006, 04:17 AM
  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