I'm working with Mappoint Europe 2002 and Visual C++. I want to do double click on a pushpin, which I have previosly created, and showa new dialog with the information of the pushpin (lat/lon,address...).
Thanks you.
This is a discussion on Double Click on a Pushpin within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm working with Mappoint Europe 2002 and Visual C++. I want to do double click on a pushpin, which I ...
I'm working with Mappoint Europe 2002 and Visual C++. I want to do double click on a pushpin, which I have previosly created, and showa new dialog with the information of the pushpin (lat/lon,address...).
Thanks you.
Look at pushpin.parent. Not sure, but I think that's the right direction to go. (try 'fields')
Not an expert myself, but perhaps it might help
Good luck
Nick
You need to trap the "object selected" event (forget what it is called now).
Create an event handler and connect it.
iirc, you have to set your project to be a COM Server, so you can pass your "event receiver" object and methods to MapPoint.
Your event handler should then check the newly selected object (passed as a parameter) , to check that it is a Pushpin and which pushpin it is (via its id).
Hope this helps - it should point you in the right direction. It is a while since I've played around with the event handling stuff!
Richard
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
hi ..
i am a beginner in mappoint automation, it seems that mappoint is mainly used with visual basic ... what about visual c++ ? all what i need to do is to add pushpins on the map by giving long and lat
if someone can give me a piece of advice, i will appreciate, thanks
Alain - see my pending article I wrote for MP2KMag - I think Eric said it should be published next week.
This does some simple MapPoint manipulation (pushpin and route creation) in C++ but without relying to MFC.
Richard
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
There are currently 1 users browsing this thread. (0 members and 1 guests)