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 3 of 3

Detect a pushpin name change.

This is a discussion on Detect a pushpin name change. within the MapPoint Desktop Discussion forums, part of the Map Forums category; Is there any way of detecting when a user changes the name of a pushpin? I'm placing pushpins onto a ...

  1. #1
    Daniel is offline Junior Member White Belt
    Join Date
    Jul 2004
    Posts
    8

    Detect a pushpin name change.

    Is there any way of detecting when a user changes the name of a pushpin?
    I'm placing pushpins onto a mappoint control programatically from an SQL table containing the latitude, longitude and a description. If a user changes the name I want to update descriptio field of the corresponding record.

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    I think the best you might be able to do is something with the SelectionChange event?

    SelectionChange event
    - Occurs when a selection on the map changes.

    Otherwise you would be fiddling with the Mouse events?

    I really don't think there's an easy way.. hopefully you don't have so many pushpins and it's possible to loop through them to see if they've changed.

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Daniel is offline Junior Member White Belt
    Join Date
    Jul 2004
    Posts
    8
    Cheers, I used the SelectionChange event with the pOldSelection object determined the old selection was a pushin, retrieved the record ID stored in the note and ran an update query to save the name.

    I then determined if the new selection was aslo a pushpin and stored the ID from the pusphin note into a global vairable and reset the note (incase the user makes a change) on the next selection.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I need to change the cursor to a PushPin icon
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 10-10-2005, 07:45 PM
  2. How to change the pushpin programmatically ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 12-21-2004, 05:50 AM
  3. Can you change the style of a map?
    By sparky in forum Bing Maps and MapPoint Web Service
    Replies: 0
    Last Post: 10-27-2004, 01:23 PM
  4. Is there anyway that I can change the colors of ma....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-13-2001, 01:15 PM
  5. Can I change the color of the over-all map? We wa....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-29-2000, 01:56 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66