<?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 Need to add event handler for onClick in ArcMap in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-add-event-handler-for-onclick-in-arcmap/m-p/646570#M17376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom command button I've added to ArcMap.&amp;nbsp; When clicked, it opens a new winForm window.&amp;nbsp; Now I need to get a reference for the arcMap's open document or layer (sorry - total newbie, so excuse the poor lingo).&amp;nbsp; How is this possible?&amp;nbsp; From a sample tutorial I've found so far, I see I can pass in a reference from ArcMap of type IApplication to my winForm, but don't think this has what I need to listen for mouse click events on the ArcMap object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 17:08:33 GMT</pubDate>
    <dc:creator>StevenMumby</dc:creator>
    <dc:date>2013-10-31T17:08:33Z</dc:date>
    <item>
      <title>Need to add event handler for onClick in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-add-event-handler-for-onclick-in-arcmap/m-p/646570#M17376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom command button I've added to ArcMap.&amp;nbsp; When clicked, it opens a new winForm window.&amp;nbsp; Now I need to get a reference for the arcMap's open document or layer (sorry - total newbie, so excuse the poor lingo).&amp;nbsp; How is this possible?&amp;nbsp; From a sample tutorial I've found so far, I see I can pass in a reference from ArcMap of type IApplication to my winForm, but don't think this has what I need to listen for mouse click events on the ArcMap object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 17:08:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-add-event-handler-for-onclick-in-arcmap/m-p/646570#M17376</guid>
      <dc:creator>StevenMumby</dc:creator>
      <dc:date>2013-10-31T17:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add event handler for onClick in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-add-event-handler-for-onclick-in-arcmap/m-p/646571#M17377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you need for the user to interact with the map then you should be creating a tool, not a command.&amp;nbsp; The implementation of a tool includes mouse down, mouse up and mouse move events.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 18:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-add-event-handler-for-onclick-in-arcmap/m-p/646571#M17377</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-10-31T18:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add event handler for onClick in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-add-event-handler-for-onclick-in-arcmap/m-p/646572#M17378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tks.&amp;nbsp; I'm probably getting the lingo wrong. Here's what I've accomplished so far and am trying to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Created custom menu options as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public sealed class CoWAddressPointMenu : BaseMenu, ESRI.ArcGIS.Framework.IRootLevelMenu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public CoWAddressPointMenu()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddItem("CoW.GIS.AddressPointTool.AddAddressPointCommand", 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddItem("CoW.GIS.AddressPointTool.EditAddressPointCommand", 2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Open a winForm when either of the above options are clicked.&amp;nbsp; I pass in a reference of IApplication from ArcMap to the new winForm.&amp;nbsp; This exposes a couple of properties I suspect may be useful like IDocument.&amp;nbsp; This winForm has a couple of textboxes that the user needs to complete.&amp;nbsp; Some of the textbox values will be populated by the user clicking on the open ArcMap document, retrieving attributes like the street segment and parcel ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a web developer taking my first stab at customizing ArcGIS so may be on the wrong path.&amp;nbsp; Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 18:52:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-add-event-handler-for-onclick-in-arcmap/m-p/646572#M17378</guid>
      <dc:creator>StevenMumby</dc:creator>
      <dc:date>2013-10-31T18:52:25Z</dc:date>
    </item>
  </channel>
</rss>

