MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Closing Pushpin ballon

This is a discussion on Closing Pushpin ballon within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I created one pushpin on the map using c# code, when I tried to close the pushpin ballon, it ...


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 06-16-2008
Junior Member
Yellow Belt
 
Join Date: Apr 2008
Posts: 27
Closing Pushpin ballon

Hi,
I created one pushpin on the map using c# code, when I tried to close the pushpin ballon, it is not getting closed.
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 06-16-2008
Junior Member
Yellow Belt
 
Join Date: Jul 2007
Location: Brescia (ITALY)
Posts: 13
Send a message via Skype™ to rlisario
Re: Closing Pushpin ballon

Quote:
Originally Posted by lakshmi_tirumal View Post
Hi,
I created one pushpin on the map using c# code, when I tried to close the pushpin ballon, it is not getting closed.
Do you try close it by C# code or by mouse click?!?
(i don't understand)

Bye,
Rinaldo
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 06-17-2008
Junior Member
Yellow Belt
 
Join Date: Apr 2008
Posts: 27
Re: Closing Pushpin ballon

Hi Rinaldo,
I tried to close it by mouse click. But it is not closing.
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 06-17-2008
Junior Member
Yellow Belt
 
Join Date: Jul 2007
Location: Brescia (ITALY)
Posts: 13
Send a message via Skype™ to rlisario
Re: Closing Pushpin ballon

It's very strange (in my application I can close ballon with mouse).
I think that you must verify if you have insert your code in mouse event of ActiveX control? (it's only thing can I think)

Bye,
Rinaldo
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 06-17-2008
Junior Member
Yellow Belt
 
Join Date: Apr 2008
Posts: 27
Re: Closing Pushpin ballon

Hi Rinaldo,

This is the method which I am calling in button click event. and I am unable to close the ballon state.

private void FindLocationOnMap()
{
MapPoint.
Location ObjLocation;
MapPoint.
Pushpin ObjPushpin;
ObjLocation = MPC.ActiveMap.GetLocation(Latitude, Longitude, 1);
ObjLocation.GoTo ();
FindResults AddressResults = MPC.ActiveMap.ObjectsFromPoint(MPC.ActiveMap.Locat ionToX(ObjLocation), MPC.ActiveMap.LocationToY(ObjLocation));
ObjPushpin = MPC.ActiveMap.AddPushpin(ObjLocation,
"Find");
int AddressCount = AddressResults.Count;
object Key =1;
ObjLocation = (MapPoint.
Location)AddressResults.get_Item(ref Key);
string LocationDetails = ObjLocation.Name.ToString();
ObjPushpin.Name = LocationDetails;
ObjPushpin.Note = LocationDetails;
ObjPushpin.Symbol = 1;
ObjPushpin.BalloonState =
GeoBalloonState.geoDisplayBalloon;
}


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 06-17-2008
Junior Member
Yellow Belt
 
Join Date: Jul 2007
Location: Brescia (ITALY)
Posts: 13
Send a message via Skype™ to rlisario
Re: Closing Pushpin ballon

Hi,
Maybe I don't understand... do you call your function FindLocationOnMap in OnMouseDown/OnMouseDown event of Mappoint ActiveX ?

Bye,
Rinaldo
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 06-18-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Re: Closing Pushpin ballon

Hi,
When the user close the balloon then you display it again. If you want the user close it then don't display it again.
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 06-23-2008
Junior Member
Yellow Belt
 
Join Date: Apr 2008
Posts: 27
Re: Closing Pushpin ballon

Hi,
User only is not able close 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
  #9 (permalink)  
Old 06-24-2008
Junior Member
Yellow Belt
 
Join Date: Apr 2008
Posts: 27
Re: Closing Pushpin ballon

Hi Rinaldo and Wilfried,
I got the solution for closing pushpin ballon. Actually it is my mistake that I am using mouse_beforeclick event and I am setting e.Cancel=true. Now I changed the code. Thanks for your responses .
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
ballon, closing, 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
Closing MapPoint pepumarius MapPoint 2006/2009 Discussion 8 08-19-2008 10:24 AM
MP2006 - C# - Very SLOW closing map pcfountain Development 1 05-22-2007 12:44 PM
Disabling closing of MapPoint? MD2000 MapPoint 2006/2009 Discussion 1 05-09-2005 05:57 PM
Closing Without Saving A territory map Yazzy MapPoint 2006/2009 Discussion 3 04-27-2005 03:26 PM
Closing without saving Mudrover MapPoint 2006/2009 Discussion 1 01-30-2005 08:49 AM


All times are GMT -5. The time now is 02:04 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