<?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 : docking pane border</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : docking pane border]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 19:01:42 +0000</pubDate>
  <lastBuildDate>Sat, 23 Feb 2008 01:37:10 +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=9669</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[docking pane border : Hi,   When using commandbars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31500&amp;title=docking-pane-border#31500</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 23 February 2008 at 1:37am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>When using commandbars with dockingpanes, commandbars will handle&nbsp;all resizing events for you. (DockingPane.SetCommandBars&nbsp;Me.CommandBars)</DIV><DIV>&nbsp;</DIV><DIV>also the ResizeClient event. </DIV><DIV>so you could determine what space you have left for the treeview like this:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_ResizeClient(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;If StatusBar1.Visible Then Bottom = StatusBar1.Top<BR>&nbsp;&nbsp;&nbsp; TreeView1.Move Left, Top, Right - Left, Bottom - Top<BR></DIV><DIV>End Sub<BR></DIV><DIV>&nbsp;</DIV><DIV>Docking the panes at startup:</DIV><DIV>I haven't found a way to lock the client area on a certain position, maybe it's possible, maybe not. So,&nbsp;docking the panes to the right side of the form&nbsp;will position the client area&nbsp;on the left side. If you want the second pane below the first one you can use the last param to dock that pane as neighbour:</DIV><DIV>&nbsp;</DIV><DIV>Dim Pane</DIV><DIV>Set Pane = DockingPane.CreatePane(1, 400, 200, DockRightOf, Nothing)</DIV><DIV>&nbsp;</DIV><DIV>Dim Pane2 As Pane<BR>&nbsp;&nbsp;&nbsp; Set Pane2 = DockingPane.CreatePane(2, 400, 200, DockBottomOf, Pane) ''Pane is the pane you already&nbsp;created<BR></DIV><DIV>&nbsp;</DIV><DIV>I would use the statusbar of commandbars so you don't have to deal with size and position etc. when dragging toolbars to the bottom of the form.&nbsp;Test this and you will see what I mean.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20080223_015129_frmMain.zip" target="_blank">uploads/20080223_015129_frmMain.zip</A></DIV>]]>
   </description>
   <pubDate>Sat, 23 Feb 2008 01:37:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31500&amp;title=docking-pane-border#31500</guid>
  </item> 
  <item>
   <title><![CDATA[docking pane border : After adding your code, my treeview...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31497&amp;title=docking-pane-border#31497</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 22 February 2008 at 5:42pm<br /><br />After adding your code, my treeview control is now at the top of my form (under the command bar) and spans the entire width of the form.]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 17:42:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31497&amp;title=docking-pane-border#31497</guid>
  </item> 
  <item>
   <title><![CDATA[docking pane border : Think maybe this is what you want?Private...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31496&amp;title=docking-pane-border#31496</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 22 February 2008 at 3:38pm<br /><br />Think maybe this is what you want?<br><br>Private Sub CommandBars_Resize()<br><br>&nbsp;&nbsp;&nbsp; On Error Resume Next<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Dim Left As Long<br>&nbsp;&nbsp;&nbsp; Dim Top As Long<br>&nbsp;&nbsp;&nbsp; Dim Right As Long<br>&nbsp;&nbsp;&nbsp; Dim Bottom As Long<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; CommandBars.GetClientRect Left, Top, Right, Bottom<br><br>&nbsp;&nbsp;&nbsp; If Right &gt;= Left And Bottom &gt;= Top Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TreeView1.Move Left, Top, Right - Left, Bottom - Top<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TreeView1.Move 0, 0, 0, 0<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>End Sub<br>]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 15:38:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31496&amp;title=docking-pane-border#31496</guid>
  </item> 
  <item>
   <title><![CDATA[docking pane border : uploads/20080222_145704_sample.zip...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31495&amp;title=docking-pane-border#31495</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 22 February 2008 at 2:57pm<br /><br /><a href="https://forum.codejock.com/uploads/20080222_145704_sample.zip" target="_blank">uploads/20080222_145704_sample.zip</A>]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 14:57:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31495&amp;title=docking-pane-border#31495</guid>
  </item> 
  <item>
   <title><![CDATA[docking pane border : Thanks. I created a small project...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31494&amp;title=docking-pane-border#31494</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 22 February 2008 at 2:56pm<br /><br />Thanks. I created a small project to try and show the problems I am having. You will set that the main show two panels when it is first loaded. These panels are docked to the bottom of the form. The problem is (I posted a question about this yesterday) is that no matter what I try I cannot get the width of these panels such that the left-hand side of each panel ends at the tree view control... thus, I cannot see the panel captions.<DIV>&nbsp;</DIV><DIV>The second issue that I thought I was having (and which is the subject of this post) was that if you click Panel A in the tree view control a panel appears docked to the right side of the main form. I have since determined that the black border around the form in this panel is the result of having a hidden menu on the form. However, in this sample project, the height of the panel is correct both when it is intially displayed and hidden/unhidden. I guess I must have something different in my 'real' project - which is too large to send - that is causing the problem I am having</DIV>]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 14:56:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31494&amp;title=docking-pane-border#31494</guid>
  </item> 
  <item>
   <title><![CDATA[docking pane border :  you have to hit the reply button...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31493&amp;title=docking-pane-border#31493</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 22 February 2008 at 2:43pm<br /><br />you have to hit the reply button or the option won't show up.]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 14:43:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31493&amp;title=docking-pane-border#31493</guid>
  </item> 
  <item>
   <title><![CDATA[docking pane border : Sorry, how do I attach my sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31492&amp;title=docking-pane-border#31492</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 22 February 2008 at 2:34pm<br /><br /><P>Sorry, how do I attach my sample</P>]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 14:34:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31492&amp;title=docking-pane-border#31492</guid>
  </item> 
  <item>
   <title><![CDATA[docking pane border : Can you attach a small sample? ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31490&amp;title=docking-pane-border#31490</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 22 February 2008 at 12:51pm<br /><br />Can you attach a small sample?]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 12:51:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31490&amp;title=docking-pane-border#31490</guid>
  </item> 
  <item>
   <title><![CDATA[docking pane border : Yes, I have that in my code. As...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31488&amp;title=docking-pane-border#31488</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 22 February 2008 at 12:31pm<br /><br />Yes, I have that in my code. As I said, the panel shows at the proper size once it has been hidden and redisplayed. I can't think of any code that I've written that would affect this behavior.]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 12:31:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31488&amp;title=docking-pane-border#31488</guid>
  </item> 
  <item>
   <title><![CDATA[docking pane border : Maybe try:Private Sub CommandB...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31486&amp;title=docking-pane-border#31486</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 9669<br /><strong>Posted:</strong> 22 February 2008 at 12:22pm<br /><br />Maybe try:<br><br>Private Sub CommandBars_GetClientBordersWidth(Left As Long, Top As Long, Right As Long, Bottom As Long)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If sbStatusBar.Visible Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bottom = sbStatusBar.Height<br>&nbsp;&nbsp;&nbsp; End If<br><br>End Sub<br>]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 12:22:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9669&amp;PID=31486&amp;title=docking-pane-border#31486</guid>
  </item> 
 </channel>
</rss>