blackmap
02-12-2003, 07:05 AM
Hi !
I am new to vb so maybe it's not exactly a mappoint question:
I know with the _mousedown event I can get the user clicking on the map.
But how do I get the several single clicks on the map e.g. to let the user draw a shape or measure distance?
Thanks
Peter
AndyYule
02-13-2003, 10:16 AM
Use the MouseDown. MouseMove and MouseUp in conjunction with each other. Set form properties to store the locations ie for each time the user does mousedown with the Ctrl key pressed you log the XY coordinates in an array....
I'm trying to draw a marquee on the map to allow selection of multiple pushpins my mousedown event records the xy start coordinates, my mouseup event records the xy end coordinates - if they are not the same the user has dragged across the map. Convert xy coords to location and calculate width, height of shape and add the shape - well it's a good plan except my shape isn't appearing!
Anyway hope that helps...
AndyYule
02-13-2003, 10:24 AM
Found this example from John Meyer in the forum, might help...
http://www.mp2kmag.com/mappoint/discussion/viewtopic.asp?t=3327&highlight=addshape