Select to view content in your preferred language

Mouse Events

681
1
06-30-2010 05:59 AM
BrandonRunyon
New Contributor
Hello All,

Is there is a way to listen for mouse events that occur when the user clicks on the map or uses the mouse wheel?  Any help would be appreciated!!

Thanks,
Brandon
0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor
Brandon,

The way to obtain user interaction with the map is via the various Track... methods on the MapDisplay class. At the current 1200 release these are TrackPoint, TrackPolygon, TrackPolyline, and TrackVector. In the next release (1500) due out this summer we have added some additional Track... methods for other types of shapes. There are no generic mousedown events exposed. You can also use MapDisplay.GraphicClicked and MapDisplay.MapItemClicked (notes and KML layers only).

Regards

Mike
0 Kudos