Select to view content in your preferred language

Access Mouse Cursor X Y Coordinates programmatically

559
2
09-20-2022 01:25 PM
DanielSalazar2
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

 

DanielSalazar2_0-1663705248110.png

 

0 Kudos
2 Replies
CharlesMacleod
Esri Regular Contributor

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

https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/MapToolWithOver... 

Money lines are here:

https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/MapToolWithOver... 

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

NemerHabibi
New Contributor

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

0 Kudos