MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Detecting the currently selected pushpin

This is a discussion on Detecting the currently selected pushpin within the MapPoint 2006/2009 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 ...


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 11-18-2003
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!

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 11-18-2003
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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 11-19-2003
Junior Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 12
Thanks John, much appreciated, keep up the good work.
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
detecting, pushpin, selected


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


All times are GMT -5. The time now is 12:29 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 55