View Single Post

  #4 (permalink)  
Old 10-28-2004
John Meyer's Avatar
John Meyer John Meyer is offline
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Look at the MouseDown or MouseUp event

Quote:
X ByVal Long. The X coordinate of the mouse pointer relative to the map window, in pixels.
Y ByVal Long. The Y coordinate of the mouse pointer relative to the map window, in pixels
In that event you will get the x/y of the mouse.

Now take a look at the XYToLocation method. Use it to take the x/y of the mouse and get a location object. At this point you should have the required stuff to use the calcpos function to return the lat/lon.

Also, there is another article that uses the same concept in .net to demonstrate the location sensor (uses the mousemove event)
http://www.mp2kmag.com/a66--location....mappoint.html
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Reply With Quote