<?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: dockpaneplugin: panel truncated if docked when the application starts in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3752196#M7249</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I setup an enviorment with VS2012 and Nw 2013. I built your plugin and it worked well. Could you check my test video?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://sdrv.ms/13utRCp" target="_blank"&gt;http://sdrv.ms/13utRCp&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2013 10:15:41 GMT</pubDate>
    <dc:creator>xiaodong_liang</dc:creator>
    <dc:date>2013-01-14T10:15:41Z</dc:date>
    <item>
      <title>dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3747824#M7246</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a dockpaneplugin and its panel gets truncated if it was docked when navisworks started:&lt;/P&gt;&lt;P&gt;- when I first lauch the command the panel is displayed and everything works fine&lt;/P&gt;&lt;P&gt;- I can dock and undock it with anyother window, it works fine&lt;/P&gt;&lt;P&gt;- if I close the application with the panel docked, and re open Naviswork, then the panel is truncated of a couple centimeters, with no (sufficient) scroll bar to see it completly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set all control on the panel to either dock or anchored to sides, the form is on Autosize, the plugin attributes are as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;DockPanePlugin(310, 225, FixedSize:=False, AutoScroll:=True, MinimumWidth:=310, MinimumHeight:=225)&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Nic&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 07:14:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3747824#M7246</guid>
      <dc:creator>ngombault</dc:creator>
      <dc:date>2013-01-08T07:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3750788#M7247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used this line with the demo of my dock pane plugin, opened Navisworks and docked the window. And I closed Navisworks , reopened it. The dock pane window is same. not truncated. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also changed the size of the dock pane windows (assume the controls are anchored) intentionally, closed Navisworks and opened it. All works well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you share a small demo project to show the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, I am testing with 2013.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 06:57:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3750788#M7247</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-11T06:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3750945#M7248</link>
      <description>&lt;P&gt;Here you go;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running Navis manage 2013 too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I isolated only the piece of code you need to reproduce the issue; the panel gets truncated a bit less than the other one I have but still loses some space on the right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so to reproduce:&lt;/P&gt;&lt;P&gt;- unzip docktest_dllfornavis and put it in Navis plugin folder&lt;/P&gt;&lt;P&gt;- start Navis, goto Addin, start "Display Name"&lt;/P&gt;&lt;P&gt;- see how the space between the comboboxes and the form borders is equal on both sides&lt;/P&gt;&lt;P&gt;- dock it, restart navis&lt;/P&gt;&lt;P&gt;-&amp;gt; the panel shold be truncated to the right&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I change the extension of the file from .rar to .bmp otherwise the forum wouldn't let me upload it; you need to change it back. Let me know if you'd rather have me paste the code in the text window (kind of anoying with dockpane plugin as it requires 3 classes)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Nic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 13:06:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3750945#M7248</guid>
      <dc:creator>ngombault</dc:creator>
      <dc:date>2013-01-11T13:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3752196#M7249</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I setup an enviorment with VS2012 and Nw 2013. I built your plugin and it worked well. Could you check my test video?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://sdrv.ms/13utRCp" target="_blank"&gt;http://sdrv.ms/13utRCp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 10:15:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3752196#M7249</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-14T10:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3754197#M7250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the panel is already truncated the first time you load Navis. Maybe you closed Navis with the panel docked already before you built your solution (started your video).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to:&lt;/P&gt;&lt;P&gt;1. Undock it &amp;gt; close it &amp;gt; then close Navis.&lt;/P&gt;&lt;P&gt;2. Rebuild the plugin &amp;gt; copy the dll like you did &amp;gt; Open Navis&lt;/P&gt;&lt;P&gt;You should have the &lt;STRONG&gt;exact same space between the combobox and the form borders on both side&lt;/STRONG&gt; (your video shows the right border is touching the combobox)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Now dock the panel &amp;gt; close Navis&lt;/P&gt;&lt;P&gt;4. Reopen Navis&lt;/P&gt;&lt;P&gt;The panel is truncated on the right side (with this example, of only a few pixels, but I have another sample where I loose something like 15 to 25 pts on the right)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 09:31:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3754197#M7250</guid>
      <dc:creator>ngombault</dc:creator>
      <dc:date>2013-01-16T09:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3756235#M7251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes, &amp;nbsp;the first time I saw your dockpane window is&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;the right border is touching the combobox, but not truncted. And in the first time, it is NOT docked. So I just docked it and restart Navisworks to see if there is any difference.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I do not remember clearly how it looks in the designer of VS. I will take a look at it soon.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2013 07:47:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3756235#M7251</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-18T07:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3757649#M7252</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I investigated further, and the issue is linked to having control on the form that are anchored both sides; dock (fill, top, bottom...) works fine but anchor produce these truncated results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have on way around, it is to first put a docked split container with panel2.collapsed set to true, and put all my controls in panel1. I tried with a simple panel but it wasn't fixing the issue, the split container does the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you find anything else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nic&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2013 22:07:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3757649#M7252</guid>
      <dc:creator>ngombault</dc:creator>
      <dc:date>2013-01-20T22:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3758527#M7253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I spent some time to test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstly, to clarify: using your plugin, in VS designer&amp;nbsp;of the user control, the right border is not touching the ComboBox. When I tested last time, in the first launching, the right border has started to touch the ComboBox, i.e. the distance between the border and ComboBox became much smaller than designer, &amp;nbsp;but still not truncated (that was why I have a memory the border is touching the BomboBox). While in the second time, it the status is same. So I thought no change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After I removed plugin, rebuilt and re-deployed, I can obviously see the problem you saw. I cannot see what I tested last time any more &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;I also found: &amp;nbsp;without Anchoring to right, the issue does not occur. However this means the ComboBox will not resize when window changing size. This is not what you expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since in the first message I cannot reproduce with SDK sample, I turned to dig into it. It is written in C#. I tried to add Anchoring like you code. I also tried to create a VB.NET project with your codes. The result is same: the ComboBox does not resize when window changing size. &amp;nbsp;As the two are built in VS2010 (.NET framework 4.0), I started to suspect the framework. So I switched your VS2012 project from 4.5 to 4.0. The result is same to VS2010, i.e. the ComboBox does not resize when window changing size anymore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I did not find a solution so far. It is time to report these behaviors with our engineer team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 05:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3758527#M7253</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-22T05:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3795906#M7254</link>
      <description>&lt;P&gt;I just wanted to add if you've tried adding all the form contents to a table layout panel? I usually add a tabled layout panel which is docked to the usercontrol and never had any issues with resizing whether docked or not&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2013 23:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3795906#M7254</guid>
      <dc:creator>ali.talebi</dc:creator>
      <dc:date>2013-03-04T23:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: dockpaneplugin: panel truncated if docked when the application starts</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3795917#M7255</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't know about the TableLayoutPanel, I gave it a short try, but I find the layout functionality too restrictive compare to simple Panels.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 00:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/dockpaneplugin-panel-truncated-if-docked-when-the-application/m-p/3795917#M7255</guid>
      <dc:creator>ngombault</dc:creator>
      <dc:date>2013-03-05T00:01:34Z</dc:date>
    </item>
  </channel>
</rss>

