<?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 : Change Pane Size Dynamically</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Change Pane Size Dynamically]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 22:47:20 +0000</pubDate>
  <lastBuildDate>Tue, 24 Feb 2004 12:20:49 +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=277</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[Change Pane Size Dynamically : I didn&amp;#039;t find exactly what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=277&amp;PID=1142&amp;title=change-pane-size-dynamically#1142</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=133">thodgson</a><br /><strong>Subject:</strong> 277<br /><strong>Posted:</strong> 24 February 2004 at 12:20pm<br /><br /><P>I didn't find exactly what I was looking for, but I was able to create a workaround, which works well for us.</P><P>My approach was to create a layout, then save it to the registry if it doesn't already exist.&nbsp; I was informed that layouts must be created in whole, then activated.&nbsp; You cannot move panes around one at a time any way you like - which is what I really wanted.&nbsp; </P><P>&nbsp;</P><P>Anyway, in the following code sample, I have a window pane layout named "Visual Studio".&nbsp; If it was already created and saved to the registry, it is loaded and the layout is "set" (available).&nbsp; If it doesn't already exist, I create the layout, and save it to the registry.&nbsp; </P><P><FONT color=#008000>// Create or load the Visual Studio Layout</P></FONT><P>m_pLayoutVisualStudio = m_paneManager.CreateLayout();</P><P><FONT color=#0000ff>if</FONT> (m_pLayoutVisualStudio-&gt;<FONT color=#880000>Load</FONT>(<FONT color=#a000a0>_T</FONT>("VisualStudio"))) </P><P>{</P><P>m_paneManager.<FONT color=#880000>SetLayout</FONT>(m_pLayoutVisualStudio); </P><P>} </P><P><FONT color=#0000ff>else</FONT> </P><P>{</P><P>m_paneManager.DockPane(m_pwndTreeView, dockLeftOf);</P><P>m_paneManager.DockPane(m_pwndOutbar, dockLeftOf, m_pwndTreeView);</P><P></P><P>m_paneManager.DockPane(m_pwndPaneChartRealtime, dockBottomOf);</P><P>m_paneManager.DockPane(m_pwndPaneOutput, dockBottomOf);</P><P>m_paneManager.DockPane(m_pwndPaneLog, dockBottomOf);</P><P>m_paneManager.DockPane(m_pwndPaneChartResponseTime, dockBottomOf);</P><P></P><P>m_paneManager.AttachPane(m_pwndOutbar, m_pwndTreeView);</P><P>m_paneManager.AttachPane(m_pwndPaneOutput, m_pwndPaneChartRealtime);</P><P>m_paneManager.AttachPane(m_pwndPaneLog, m_pwndPaneChartRealtime);</P><P>m_paneManager.AttachPane(m_pwndPaneChartResponseTime, m_pwndPaneChartRealtime);</P><P></P><P>m_pwndTreeView-&gt;<FONT color=#880000>Select</FONT>();</P><P>m_pwndPaneChartRealtime-&gt;<FONT color=#880000>Select</FONT>();</P><P>m_paneManager.<FONT color=#880000>GetLayout</FONT>(m_pLayoutVisualStudio);</P><P></P><P>m_pLayoutVisualStudio-&gt;<FONT color=#880000>Save</FONT>(<FONT color=#a000a0>_T</FONT>("VisualStudio"));</P><P>}</P><P>Whenever I want to show the Visual Studio layout, I just set the pane manager layout:</P><P><FONT color=#808080>m_paneManager</FONT>.<FONT color=#880000>SetLayout</FONT>(<FONT color=#808080>m_pLayoutVisualStudio</FONT>);</P><P>Conceivably, you could do this on the fly...</P><P>Tim Hodgson<BR>ExclamationSoft (<A href="http://www.Exclamati&#111;nSoft.com" target="_blank">http://www.ExclamationSoft.com</A>)<BR>------------------------------------------------------------ ---<BR>WebWatchBot - Your site is down, and so is your revenue<BR>NetMailBot - Automate Email Processes<BR>MailListBot - Send Email and more in VB and ASP<BR>Smtp.NET - Send Email and more in .NET</P><span style="font-size:10px"><br /><br />Edited by thodgson</span>]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 12:20:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=277&amp;PID=1142&amp;title=change-pane-size-dynamically#1142</guid>
  </item> 
  <item>
   <title><![CDATA[Change Pane Size Dynamically : Ever find a solution to this? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=277&amp;PID=1137&amp;title=change-pane-size-dynamically#1137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=355">dkf8117</a><br /><strong>Subject:</strong> 277<br /><strong>Posted:</strong> 24 February 2004 at 10:48am<br /><br />Ever find a solution to this?]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 10:48:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=277&amp;PID=1137&amp;title=change-pane-size-dynamically#1137</guid>
  </item> 
  <item>
   <title><![CDATA[Change Pane Size Dynamically : Sorry if this is obvious, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=277&amp;PID=627&amp;title=change-pane-size-dynamically#627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=133">thodgson</a><br /><strong>Subject:</strong> 277<br /><strong>Posted:</strong> 06 December 2003 at 1:18pm<br /><br /><P>Sorry if this is obvious, but I'm having trouble finding it:</P><P>How can I dynamically resize a pane once it is created and attached?</P><P>In my OnCreate method, I have:</P><P><FONT color=#808080>m_pwndOutbar</FONT> = <FONT color=#808080>m_paneManager</FONT>.<FONT color=#880000>CreatePane</FONT>(<FONT color=#a000a0>IDR_PANE_OUTBAR</FONT>, <FONT color=#0000ff>CRect</FONT>(0, 0, 130, 0), <FONT color=#a000a0>dockLeftOf</FONT>, <FONT color=#808080>m_pwndTreeView</FONT> );</P><P>In the above, the size is initially set.&nbsp; I'd hate to have to destroy the pane and re-create it.</P><P>Tim</P>]]>
   </description>
   <pubDate>Sat, 06 Dec 2003 13:18:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=277&amp;PID=627&amp;title=change-pane-size-dynamically#627</guid>
  </item> 
 </channel>
</rss>