AnsweredAssumed Answered

add-in button - mouse down capture?

Question asked by helenchu on Jan 14, 2011
Latest reply on Mar 1, 2011 by geonetadmin
All,
I'm trying to built a add-in button which will need to get x,y from a mouse down click.  How do I do it? For example I have Function MouseDownXY so what I need to write on the button Sub Onclick() to make it go to my function?  I'm using vb.net.  Thank you very much for your help.

Function MouseDownXY(ByVal x As Long, ByVal y As Long)
Set pPoint = pMxApp.Display.DisplayTransformation.ToMapPoint(x, y)
End Function

Outcomes