Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Displaying Balloon on Pushpin 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 MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
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 |
| |||
|
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 MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi Sany, Yes
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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 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
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
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 soon Code: using System.Runtime.InteropServices; // needed to call external application (winAPI dll) Code: public class Win32
{
[DllImport("User32.dll")]
public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
}
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 MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| balloon, displaying, pushpin |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |