<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Coordinates of Mouse click? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1035#M19</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IPoint pPoint = IActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(int x, int y);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;x, y are mouse coordinates&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esridisplay/IDisplayTransformation_ToMapPoint.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esridisplay/IDisplayTransformation_ToMapPoint.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/ao_start.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/ao_start.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2011 06:56:53 GMT</pubDate>
    <dc:creator>DubravkoAntonic</dc:creator>
    <dc:date>2011-08-25T06:56:53Z</dc:date>
    <item>
      <title>Coordinates of Mouse click?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1034#M18</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to write an ArcGIS Add-in using ArcObjects and .Net (C#) and I can't figure out how to get the user to click on a button that I have added to ArcMap from the add-in and then from that click on the map and get the co-ordinates or location of the click. This is the first ArcObjects programming I have done and I have managed to get quite a bit done but can not figure this out at all. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 21:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1034#M18</guid>
      <dc:creator>LukeStewart</dc:creator>
      <dc:date>2011-08-24T21:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Mouse click?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1035#M19</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IPoint pPoint = IActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(int x, int y);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;x, y are mouse coordinates&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esridisplay/IDisplayTransformation_ToMapPoint.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esridisplay/IDisplayTransformation_ToMapPoint.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/ao_start.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/ao_start.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 06:56:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1035#M19</guid>
      <dc:creator>DubravkoAntonic</dc:creator>
      <dc:date>2011-08-25T06:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Mouse click?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1036#M20</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply. What I still don't understand is how I get the code to run when the mouse is clicked on the map. Or where I actually put this code in my add-in project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 08:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1036#M20</guid>
      <dc:creator>LukeStewart</dc:creator>
      <dc:date>2011-08-25T08:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Mouse click?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1037#M21</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok so I worked this out. I needed to add a tool to my add-in rather than a button and then add this code to activate the onclick event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;protected override void OnMouseDown(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs arg)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So easy!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 09:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1037#M21</guid>
      <dc:creator>LukeStewart</dc:creator>
      <dc:date>2011-08-25T09:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Mouse click?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1038#M22</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;These are the basics, it is a good way to follow well documented help from SDK, because 6 and more years ago help didn't have that much examples and snippets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/ao_home.html"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/ao_home.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is one video that deals with add-ins&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/video/arcgis-desktop/details?entryID=F6C89D10-1422-2418-7F87-2A1D5056A5DF"&gt;http://resources.arcgis.com/gallery/video/arcgis-desktop/details?entryID=F6C89D10-1422-2418-7F87-2A1D5056A5DF&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 16:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/coordinates-of-mouse-click/m-p/1038#M22</guid>
      <dc:creator>DubravkoAntonic</dc:creator>
      <dc:date>2011-08-25T16:20:37Z</dc:date>
    </item>
  </channel>
</rss>

