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

Detecting the currently selected pushpin

This is a discussion on Detecting the currently selected pushpin within the MapPoint Desktop Discussion forums, part of the Map Forums category; is there a way for me to detect the currently selected pushpin object when using the map point object late ...

  1. #1
    daxydoggie is offline Junior Member Yellow Belt
    Join Date
    Aug 2003
    Posts
    12

    Detecting the currently selected pushpin

    is there a way for me to detect the currently selected pushpin object when using the map point object late bound? I dont want to use the control for technical reasons. Or should I use an addin that detects this. Is it possible to query the object model somehow for this? This is very urgent, a prompt response would be most appreciated, thanks a lot people!


  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Give this a try.

    Dim objmap As MapPoint.Map
    Code:
    Dim pp As MapPoint.Pushpin
    On Error Resume Next
    Set objmap = GetObject(, "MapPoint.Application").ActiveMap
    Set obj1 = objmap.Selection
    If TypeOf objmap.Selection Is Pushpin Then
    Set pp = objmap.Selection
    MsgBox pp.Name
    End If

  3. #3
    daxydoggie is offline Junior Member Yellow Belt
    Join Date
    Aug 2003
    Posts
    12
    Thanks John, much appreciated, keep up the good work.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. detecting mappoint in vba
    By OregonIzer in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 07-21-2005, 12:56 PM
  2. Data Associated With Selected Pushpin
    By Steve Wenck in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-12-2004, 04:03 PM
  3. Find Record in Dataset from selected Pushpin
    By neomoon in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-11-2003, 08:49 AM
  4. Detecting when a line is clicked on in MP2K
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-21-2003, 11:24 AM
  5. I have an app that adds a pushpin (a user selected....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-19-2002, 04:22 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