<?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 ArcMap custom dockable window Position &amp; State on ArcMap load in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-custom-dockable-window-position-state-on/m-p/104200#M2756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an Add-in as a custom dockable window.&lt;/P&gt;&lt;P&gt;We need to have it on the left, hidden, visible on&amp;nbsp;ArcMap New Document event (in other words - on ArcMap load)&lt;/P&gt;&lt;P&gt;like on the picture:&lt;/P&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 11.52px; margin: 0.5em 0em 0em 3em;" type="disc"&gt;&lt;LI style="margin-bottom: 0.5em;"&gt;&lt;STRONG&gt;Hidden&lt;/STRONG&gt;—When&amp;nbsp;the dockable window is hidden or minimized to a desktop application,&amp;nbsp;it saves&amp;nbsp;screen space&amp;nbsp;for&amp;nbsp;the user.&amp;nbsp;When the user hovers over the dockable window, it will be exposed again, but once the dockable window loses focus,&amp;nbsp;it returns to&amp;nbsp;the state represented in the following screen shot. The&amp;nbsp;following ArcMap Dockable Window is&amp;nbsp;next to a hidden&amp;nbsp;TOC in ArcMap to show that in a hidden state, it appears like a tabbed item:&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://desktop.arcgis.com/en/arcobjects/latest/java/bitmaps/e9d87d27-280c-4d6e-a2cc-52558c6312bd9.png" style="border: none;" title="Screen shot showing an ArcMap Dockable Window in the hidden state." /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcobjects/latest/java/e9d87d27-280c-4d6e-a2cc-52558c6312bd.htm" title="https://desktop.arcgis.com/en/arcobjects/latest/java/e9d87d27-280c-4d6e-a2cc-52558c6312bd.htm"&gt;How to create an add-in dockable window—ArcObjects 10.4 Help for Java | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CustomExtension.cs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IDockableWindowManager dockableWindowManager = ArcMap.Application as IDockableWindowManager;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;UID dockWinID = new UIDClass();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;dockWinID.Value = "Some_Value";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;dockableWindow = dockableWindowManager.GetDockableWindow(dockWinID);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;dockableWindow.Dock(esriDockFlags.esriDockLeft | esriDockFlags.esriDockHide | esriDockFlags.esriDockUnPinned);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Config.esriaddinx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;AddIn language="CLR" library="Some.dll" namespace="SomeNS"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;ArcMap&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;DockableWindows&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;DockableWindow id="SomeID" class="Some+AddinImpl" caption="Some" image="Images\Some.png" &amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;InitialPlacement height="300" width="300" state="hidden" position="left"/&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/DockableWindow&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the correct settings in order to get the Position&amp;amp;State I describe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcMap 10.6.1, C#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2018 05:21:06 GMT</pubDate>
    <dc:creator>MarkMindlin</dc:creator>
    <dc:date>2018-08-23T05:21:06Z</dc:date>
    <item>
      <title>ArcMap custom dockable window Position &amp; State on ArcMap load</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-custom-dockable-window-position-state-on/m-p/104200#M2756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an Add-in as a custom dockable window.&lt;/P&gt;&lt;P&gt;We need to have it on the left, hidden, visible on&amp;nbsp;ArcMap New Document event (in other words - on ArcMap load)&lt;/P&gt;&lt;P&gt;like on the picture:&lt;/P&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 11.52px; margin: 0.5em 0em 0em 3em;" type="disc"&gt;&lt;LI style="margin-bottom: 0.5em;"&gt;&lt;STRONG&gt;Hidden&lt;/STRONG&gt;—When&amp;nbsp;the dockable window is hidden or minimized to a desktop application,&amp;nbsp;it saves&amp;nbsp;screen space&amp;nbsp;for&amp;nbsp;the user.&amp;nbsp;When the user hovers over the dockable window, it will be exposed again, but once the dockable window loses focus,&amp;nbsp;it returns to&amp;nbsp;the state represented in the following screen shot. The&amp;nbsp;following ArcMap Dockable Window is&amp;nbsp;next to a hidden&amp;nbsp;TOC in ArcMap to show that in a hidden state, it appears like a tabbed item:&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://desktop.arcgis.com/en/arcobjects/latest/java/bitmaps/e9d87d27-280c-4d6e-a2cc-52558c6312bd9.png" style="border: none;" title="Screen shot showing an ArcMap Dockable Window in the hidden state." /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcobjects/latest/java/e9d87d27-280c-4d6e-a2cc-52558c6312bd.htm" title="https://desktop.arcgis.com/en/arcobjects/latest/java/e9d87d27-280c-4d6e-a2cc-52558c6312bd.htm"&gt;How to create an add-in dockable window—ArcObjects 10.4 Help for Java | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CustomExtension.cs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IDockableWindowManager dockableWindowManager = ArcMap.Application as IDockableWindowManager;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;UID dockWinID = new UIDClass();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;dockWinID.Value = "Some_Value";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;dockableWindow = dockableWindowManager.GetDockableWindow(dockWinID);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;dockableWindow.Dock(esriDockFlags.esriDockLeft | esriDockFlags.esriDockHide | esriDockFlags.esriDockUnPinned);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Config.esriaddinx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;AddIn language="CLR" library="Some.dll" namespace="SomeNS"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;ArcMap&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;DockableWindows&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;DockableWindow id="SomeID" class="Some+AddinImpl" caption="Some" image="Images\Some.png" &amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;InitialPlacement height="300" width="300" state="hidden" position="left"/&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/DockableWindow&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the correct settings in order to get the Position&amp;amp;State I describe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcMap 10.6.1, C#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 05:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-custom-dockable-window-position-state-on/m-p/104200#M2756</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2018-08-23T05:21:06Z</dc:date>
    </item>
  </channel>
</rss>

