MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Displaying Balloon on Pushpin

This is a discussion on Displaying Balloon on Pushpin within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-25-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi Sany,

I cannot find anything in the help for this. Which methods are trying to change orientation ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-25-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-25-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
On MapPoint 2004,

you just need to right click on the pushpin
to choose the orientation of the Ballon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-26-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 01-26-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Ok Wilfried

Thanks, it is a shame this function is not public

Sany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 01-26-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi Sany,

Yes But maybe it's hidden somewhere...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 01-29-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 01-30-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 01-31-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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("User32.dll")> 
        Public Shared Procedure keybd_event(ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags as Int, ...)
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
balloon, displaying, pushpin


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Displaying a label with each pushpin BobFromBoston MapPoint 2006/2009 Discussion 6 02-25-2007 10:46 AM
Displaying a Tool Tip when hovering over a pushpin BobFromBoston MapPoint 2006/2009 Discussion 4 03-18-2006 04:17 AM
howto get balloon to show on mouseover pushpin discostu MapPoint 2006/2009 Discussion 1 05-25-2005 03:14 PM
Turning on all pushpin Balloon sTate Anonymous Products: Pushpin Tool, Single State Mapper 1 02-18-2004 12:24 PM
balloon display Anonymous MapPoint 2006/2009 Discussion 4 01-03-2003 04:15 PM


All times are GMT -5. The time now is 12:23 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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