<?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: How can I create a custom context menu for right clicking in a map? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-create-a-custom-context-menu-for-right/m-p/1294127#M9886</link>
    <description>&lt;P&gt;Can you use conditions to turn these updates to the context menu on and off depending on the state of the condition?&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2023 16:28:41 GMT</pubDate>
    <dc:creator>KyleBPerri</dc:creator>
    <dc:date>2023-05-30T16:28:41Z</dc:date>
    <item>
      <title>How can I create a custom context menu for right clicking in a map?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-create-a-custom-context-menu-for-right/m-p/1293574#M9872</link>
      <description>&lt;P&gt;I would like the user to right-click on the map and depending on the feature that was clicked, a custom context menu would show up rather than the default one. I know this is possible using a MapTool, but I don't want the user to have to first click the MapTool before having this functionality. I'd prefer that it is just automatically on at all times. Is that possible?&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 17:43:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-create-a-custom-context-menu-for-right/m-p/1293574#M9872</guid>
      <dc:creator>KyleBPerri</dc:creator>
      <dc:date>2023-05-26T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a custom context menu for right clicking in a map?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-create-a-custom-context-menu-for-right/m-p/1293612#M9877</link>
      <description>&lt;P&gt;there are already built-in context menus for the mapview/scene view, depending on which COTS tool is active. Customize the relevant existing context menus to host your custom functionality - whether buttons, tools, menus, etc.&lt;/P&gt;&lt;P&gt;Here is an example of customizing the default map view context menu - shown when the "Explore" tool is active and the 2D selection menu shown when the "Select" tool is active. "&amp;lt;updateModule" goes in your Config.daml&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;button id="TestAddin_Button1" caption="Test Addin 1" ... /&amp;gt;
...
&amp;lt;updateModule refID="esri_mapping"&amp;gt;
 &amp;lt;menus&amp;gt;
  &amp;lt;updateMenu refID="esri_mapping_popupToolContextMenu"&amp;gt;
    &amp;lt;deleteButton refID="esri_mapping_prevExtentButton"/&amp;gt;
    &amp;lt;deleteButton refID="esri_mapping_nextExtentButton"/&amp;gt;
    &amp;lt;deleteButton refID="esri_mapping_locateReverseGeocode"/&amp;gt;
    &amp;lt;insertButton refID="TestAddin_Button1" insert="before"
        placeWith="esri_mapping_cameraPropertiesControl"/&amp;gt;
  &amp;lt;/updateMenu&amp;gt;
  &amp;lt;updateMenu refID="esri_mapping_selection2DContextMenu"&amp;gt;
    &amp;lt;deleteButton refID="esri_core_editCopyButton"/&amp;gt;
    &amp;lt;deleteButton refID="esri_core_editPasteButton"/&amp;gt;
    &amp;lt;deleteButton refID="esri_core_editDeleteButton"/&amp;gt;
    &amp;lt;insertButton refID="TestAddin_Button1" insert="before"
       placeWith="esri_editing_EditVerticesMove" separator="true"/&amp;gt;
   &amp;lt;/updateMenu&amp;gt;
  &amp;lt;/menus&amp;gt;
&amp;lt;/updateModule&amp;gt;
        &lt;/LI-CODE&gt;&lt;P&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context-menu-1.png" style="width: 598px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71799i0BDDE2D742820AC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="context-menu-1.png" alt="context-menu-1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context-menu-2.png" style="width: 591px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71798iA75B2167DA61B797/image-size/large?v=v2&amp;amp;px=999" role="button" title="context-menu-2.png" alt="context-menu-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 18:52:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-create-a-custom-context-menu-for-right/m-p/1293612#M9877</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2023-05-26T18:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a custom context menu for right clicking in a map?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-create-a-custom-context-menu-for-right/m-p/1294127#M9886</link>
      <description>&lt;P&gt;Can you use conditions to turn these updates to the context menu on and off depending on the state of the condition?&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 16:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-create-a-custom-context-menu-for-right/m-p/1294127#M9886</guid>
      <dc:creator>KyleBPerri</dc:creator>
      <dc:date>2023-05-30T16:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a custom context menu for right clicking in a map?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-create-a-custom-context-menu-for-right/m-p/1294160#M9889</link>
      <description>&lt;P&gt;yes, same as u cld do if they were on the ribbon&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 17:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-create-a-custom-context-menu-for-right/m-p/1294160#M9889</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2023-05-30T17:50:18Z</dc:date>
    </item>
  </channel>
</rss>

