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
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 ...
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
Hi Sany,
I cannot find anything in the help for this. Which methods are trying to change orientation ?
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
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
On MapPoint 2004,
you just need to right click on the pushpin
to choose the orientation of the Ballon
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.
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Ok Wilfried
Thanks, it is a shame this function is not public
Sany
Hi Sany,
YesBut maybe it's hidden somewhere...
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
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 upAnyway maybe this is workaround for you:
As for the Win32 call is P/Invoke for win32 API. If you need example then just ask itCode: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![]()
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
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
Hi Sany,
You will understeand soonYou need this in using clause:
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:using System.Runtime.InteropServices; // needed to call external application (winAPI dll)
You can easy translate that to VB because you know the syntax probably mutch better thatn meCode:public class Win32 { [DllImport("User32.dll")] public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo); }Something like this (I think):
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.Code:<DllImport("User32.dll")> Public Shared Procedure keybd_event(ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags as Int, ...)
If there is still questios just fire them. There are enough VB.NET people here to assist you![]()
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
There are currently 1 users browsing this thread. (0 members and 1 guests)