Select to view content in your preferred language

Access Mouse Cursor X Y Coordinates programmatically

09-20-2022 01:25 PM
New Contributor II

Want to access the X Y of the mouse cursor programmatically to to access inside of a button controls onClick.


I want to be able to access the values circled in red (Screntshot) from an Add-In  button control




0 Kudos
2 Replies
Esri Regular Contributor

Daniel, take a look at this sample. It basically does what u want: 

Money lines are here: 

(ps, this is a MapTool not a Button. There is no callback for a button)

New Contributor

Have you been able to figure this out? I've been trying to figure this out and still unsure

0 Kudos