Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 5 of 5

Double Click on a Pushpin

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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Double Click on a Pushpin

    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.

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  3. #3
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    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

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    visual c++ vs visual basic ?

    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

  5. #5
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A simple map with a pushpin on click
    By cojmezek in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-13-2005, 02:54 AM
  2. getAddress(ldouble lat, double lon) (And a question with it)
    By Gianmaria in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-13-2005, 01:21 PM
  3. Long/Lat from click.
    By Milo in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 10-29-2004, 08:32 AM
  4. How to add click event for VB.Net ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-31-2003, 01:15 AM
  5. Double Click on map
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-08-2003, 07:42 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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