<?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 How to show addin context menu in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-addin-context-menu/m-p/372129#M9768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a menu in an add-in.&amp;nbsp; I set isShortcutMenu="true" in Config.esriaddinx.&amp;nbsp; How do I get the context menu to show up when I right-click with my custom tool active?&amp;nbsp; In Config.esriaddinx, the portion for my menu looks like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Menu id="The_University_of_ArcGIS10_Add_in_Example_MyContextMenu" caption="Context Menu with MultiItems" isRootMenu="true" isShortcutMenu="true"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Items&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button refID="esriArcMapUI.FullExtentCommand" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Items&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Menu&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I could get to the menu in the OnContextMenu event of my tool using UIDClass and ThisAddIn.IDs, but menus aren't accessible like buttons and tools are in this manner.&amp;nbsp; No ID shows up for my menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also thought maybe I could add the menu as an attribute or child element of my &amp;lt;Tool&amp;gt; element in Config.esriaddinx, but that doesn't seem to be an option since it's not in the schema.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 18:58:24 GMT</pubDate>
    <dc:creator>TimWhiteaker</dc:creator>
    <dc:date>2011-01-26T18:58:24Z</dc:date>
    <item>
      <title>How to show addin context menu</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-addin-context-menu/m-p/372129#M9768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a menu in an add-in.&amp;nbsp; I set isShortcutMenu="true" in Config.esriaddinx.&amp;nbsp; How do I get the context menu to show up when I right-click with my custom tool active?&amp;nbsp; In Config.esriaddinx, the portion for my menu looks like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Menu id="The_University_of_ArcGIS10_Add_in_Example_MyContextMenu" caption="Context Menu with MultiItems" isRootMenu="true" isShortcutMenu="true"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Items&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button refID="esriArcMapUI.FullExtentCommand" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Items&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Menu&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I could get to the menu in the OnContextMenu event of my tool using UIDClass and ThisAddIn.IDs, but menus aren't accessible like buttons and tools are in this manner.&amp;nbsp; No ID shows up for my menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also thought maybe I could add the menu as an attribute or child element of my &amp;lt;Tool&amp;gt; element in Config.esriaddinx, but that doesn't seem to be an option since it's not in the schema.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 18:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-addin-context-menu/m-p/372129#M9768</guid>
      <dc:creator>TimWhiteaker</dc:creator>
      <dc:date>2011-01-26T18:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to show addin context menu</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-addin-context-menu/m-p/372130#M9769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a solution in a similar thread here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/11602-Context-menu-in-ArcGIS-10-add-in"&gt;http://forums.arcgis.com/threads/11602-Context-menu-in-ArcGIS-10-add-in&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 15:11:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-show-addin-context-menu/m-p/372130#M9769</guid>
      <dc:creator>TimWhiteaker</dc:creator>
      <dc:date>2011-09-13T15:11:10Z</dc:date>
    </item>
  </channel>
</rss>

