<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : How to set size of Panes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : How to set size of Panes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 22:04:06 +0000</pubDate>
  <lastBuildDate>Wed, 09 Jul 2008 11:27:56 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=11301</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[How to set size of Panes :   Baldur wrote:I found, that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=38057&amp;title=how-to-set-size-of-panes#38057</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11301<br /><strong>Posted:</strong> 09 July 2008 at 11:27am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Baldur" alt="Originally posted by Baldur" style="vertical-align: text-bottom;" /> <strong>Baldur wrote:</strong><br /><br />I found, that in CreatePane the width and height are only "StartValues". <DIV>The real width and height is calculated from the form containing the DockingPane-Control.</DIV><DIV>So if you want, that your forms are specific in width and height, than the containerform has to have the correct size.</DIV><DIV>&nbsp;</DIV><DIV>Min/MaxTracking works only for undocked panes.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi Baldur,</DIV><DIV>&nbsp;</DIV><DIV>I have to correct you on this. The CreatePane init values are used to size the form. Of course this is not the case when you have multiple panes, one docked to the top, one to the right and one docked to the left.&nbsp;If you would dock all the panes&nbsp;(for example DockRightOf), the width value in CreatePanes&nbsp;will be used and height will be the form height (so form will be resized and not as you would have in the IDE). DockingPane will always use the entire width or height (depends where the pane is docked) of it's container. </DIV><DIV>&nbsp;</DIV><DIV>And for the Min/MaxTracking works also for <strong>docked</strong> panes. I have RC and a propertygrid in a&nbsp;form and I&nbsp;want to prevent the user from resizing the propertygrid to the full width of the form, so I set these value Min = 300 and Max = 500 and this will allow the user to resize it between these two values.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 09 Jul 2008 11:27:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=38057&amp;title=how-to-set-size-of-panes#38057</guid>
  </item> 
  <item>
   <title><![CDATA[How to set size of Panes : I found, that in CreatePane the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=38049&amp;title=how-to-set-size-of-panes#38049</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 11301<br /><strong>Posted:</strong> 09 July 2008 at 10:10am<br /><br />I found, that in CreatePane the width and height are only "StartValues".<DIV>The real width and height is calculated from the form containing the DockingPane-Control.</DIV><DIV>So if you want, that your forms are specific in width and height, than the containerform has to have the correct size.</DIV><DIV>&nbsp;</DIV><DIV>Min/MaxTracking works only for undocked panes.</DIV>]]>
   </description>
   <pubDate>Wed, 09 Jul 2008 10:10:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=38049&amp;title=how-to-set-size-of-panes#38049</guid>
  </item> 
  <item>
   <title><![CDATA[How to set size of Panes : No, I am more difficultI have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37828&amp;title=how-to-set-size-of-panes#37828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 11301<br /><strong>Posted:</strong> 04 July 2008 at 9:07am<br /><br />No, I am more difficult<img src="http://forum.codejock.com/smileys/smiley17.gif" border="0" align="absmiddle"><br><br>I have two panes, and keep changing the Form that is in each pane as user makes selection.&nbsp; I was detroying and creating the panes each time, but now I have got it working with DM.DockPane .......<br><br><br>]]>
   </description>
   <pubDate>Fri, 04 Jul 2008 09:07:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37828&amp;title=how-to-set-size-of-panes#37828</guid>
  </item> 
  <item>
   <title><![CDATA[How to set size of Panes : Hi,  You know which form will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37820&amp;title=how-to-set-size-of-panes#37820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11301<br /><strong>Posted:</strong> 04 July 2008 at 3:36am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>You know <strong>which</strong> form will be attached to a pane, right?</DIV><DIV>&nbsp;</DIV><DIV>Dim frm As New Form1 'create instance of the form<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; Set pane = DockingPane1.CreatePane(1, frm.ScaleWidth / Screen.TwipsPerPixelX, frm.ScaleHeight / Screen.TwipsPerPixelY, DockRightOf, Nothing)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pane.Handle = frm.hWnd 'or attach later in dockingpane attach event</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Just an option <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 04 Jul 2008 03:36:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37820&amp;title=how-to-set-size-of-panes#37820</guid>
  </item> 
  <item>
   <title><![CDATA[How to set size of Panes : Thanks. But at the time I create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37815&amp;title=how-to-set-size-of-panes#37815</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 11301<br /><strong>Posted:</strong> 04 July 2008 at 2:41am<br /><br />Thanks. But at the time I create the pane I do not know size of form that will later be attached to it.<br><br>I have now discovered the .DockPane method which seems to do what I want.&nbsp; Putting -1 as the size of the "docked" edge seems to work OK (stretches pane to fill container along the docked edge).<br><br>So my code that sizes a pane to match new Form is something like:<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Pane.handle = NewForm.hwnd<br>&nbsp;&nbsp;&nbsp;&nbsp; DPM.DockPane Pane, -1,&nbsp; newForm.ScaleHeight, DockTopOf, null<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; Pane.MaxTrackSize.SetSize -1, newForm.ScaleHeight<br>&nbsp;&nbsp;&nbsp;&nbsp; Pane.MinTrackSize.SetSize -1, newForm.ScaleHeight * 0.3<br><br><br>]]>
   </description>
   <pubDate>Fri, 04 Jul 2008 02:41:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37815&amp;title=how-to-set-size-of-panes#37815</guid>
  </item> 
  <item>
   <title><![CDATA[How to set size of Panes : Hi,  When you create the pane:  Set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37804&amp;title=how-to-set-size-of-panes#37804</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11301<br /><strong>Posted:</strong> 04 July 2008 at 1:05am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>When you create the pane:</DIV><DIV>&nbsp;</DIV><DIV>Set pane = DockingPane1.CreatePane(1, <strong><FONT color=#ff00ff>100</FONT></strong>, <strong><FONT color=#ff0000>200</FONT></strong>, DockRightOf, Nothing)</DIV><DIV>&nbsp;</DIV><DIV>width and height will be used to size the pane.</DIV><DIV>&nbsp;</DIV><DIV>DockTopOf and DockBottomOf will use <FONT color=#ff00ff>width </FONT>value</DIV><DIV><DIV>DockLeftOf and DockRightOf will use <FONT color=#ff0000>height </FONT>value</DIV><DIV>&nbsp;</DIV><DIV>You can't have both with non-floating panes.</DIV></DIV>]]>
   </description>
   <pubDate>Fri, 04 Jul 2008 01:05:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37804&amp;title=how-to-set-size-of-panes#37804</guid>
  </item> 
  <item>
   <title><![CDATA[How to set size of Panes : I have a DockingPane with two...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37797&amp;title=how-to-set-size-of-panes#37797</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 11301<br /><strong>Posted:</strong> 03 July 2008 at 7:44pm<br /><br />I have a DockingPane with two panes&nbsp; (non-floating).<br><br>I load a form into each Pane.&nbsp;&nbsp; (.handle = form.hwnd) <br><br>How can I set the size of the Pane to match the size of the Form?<br>I have played about with MaxTrackSize.SetSize and MinTrackSize etc&nbsp; but this does not seem to resize the Panes.<br><br>I want to set the initial size of the Pane, but allow the user to make it smaller afterwards.<br><br><br>]]>
   </description>
   <pubDate>Thu, 03 Jul 2008 19:44:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11301&amp;PID=37797&amp;title=how-to-set-size-of-panes#37797</guid>
  </item> 
 </channel>
</rss>