is there a way of geting the location of the mouse pointer

matt1168
07-03-2003, 06:12 AM
I need to get the lat,lon of the mouse when clicking on the map. I can convert locations to lat,lon ok just need a way of getting a location from the mouse pointer. Or geting the location from and x,y pixel position from the visble map.

Thanks Matt

Anonymous
07-03-2003, 10:57 AM
Tools, location sensor is not good enough ?

matt1168
07-03-2003, 11:08 AM
No i use the map as an embedded object in a delphi application. I have right click popup menu apear when user right clicks on map and need to add pushpins onto the map and keep a record of its lat,lon internaly

Anonymous
07-04-2003, 01:25 PM
try out: http://www.mp2kmag.com/articles.asp?ArticleID=13

i guess, that helps. (when mouse down events fires, you get
x and y coordinates, transform them with XYToLocation(x,y), then use the function/sub

 
Web mp2kmag.com
mapforums.com