<?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 : Adding a pane to an unpinned group</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Adding a pane to an unpinned group]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 04:21:05 +0000</pubDate>
  <lastBuildDate>Sat, 26 Jun 2010 09:25:41 +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=16884</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[Adding a pane to an unpinned group : I have a default set of panes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16884&amp;PID=59116&amp;title=adding-a-pane-to-an-unpinned-group#59116</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 16884<br /><strong>Posted:</strong> 26 June 2010 at 9:25am<br /><br /><DIV>I have a default set of panes that I create as my application initializes, and I set their state to be unpinned.&nbsp; Later, I may want to add other panes to that same group.&nbsp; I do that by creating the new panes and attaching them to one of the original panes.&nbsp; Doing so adds them in the unpinned state, which is good.&nbsp; However, if my user unpins that pane, it shows up alone in one docked container, and all the original panes show up beside it in another docked container.&nbsp; It seems the attach call didn't&nbsp;make the new pane an equal citizen with the original panes.</DIV><DIV>&nbsp;</DIV><DIV align=center><img src="http://forum.codejock.com/uploads/20100626_092237_Panes1.png" border="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<img src="http://forum.codejock.com/uploads/20100626_092415_Panes2.png" border="0"></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>I've attached a modified source file from the docking pane sample to illustrate my problem.&nbsp; In MainFrm.cpp/<FONT size=2>CMainFrame</FONT><FONT color=#000080 size=2><FONT color=#000080 size=2>::</FONT></FONT><FONT size=2>OnCreate, I've removed the original call to create pane 10, along with the subsequent call that docked it to the side, and instead deferred the creation a bit and attached it to pane 7 after pane 7 has been hidden.</FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#000080 size=2><FONT color=#000080 size=2><EM>&nbsp;&nbsp;&nbsp; ...</EM></FONT></FONT></FONT></DIV><DIV><FONT size=2><FONT color=#000080 size=2><FONT color=#000080 size=2><EM>&nbsp;&nbsp;&nbsp; //CXTPDockingPane* pwndPane10 = m_paneManager.CreatePane(<BR>&nbsp;&nbsp;&nbsp; //&nbsp;IDR_PANE10, CRect(0, 0,200, 120), xtpPaneDockBottom, pwndPane9);<BR><DIV><FONT size=2><FONT color=#000080 size=2><FONT color=#000080 size=2><EM>&nbsp;&nbsp;&nbsp; ...</EM></FONT></FONT></FONT></DIV></EM></FONT></FONT></FONT></DIV><DIV><FONT size=2><FONT color=#000080 size=2><FONT color=#000080 size=2><EM>&nbsp;&nbsp;&nbsp; m_paneManager.HidePane(pwndPane7);</EM></FONT></FONT></FONT></DIV><DIV><EM><FONT color=#000080 size=2></FONT></EM>&nbsp;</DIV><DIV><FONT size=2><FONT size=2><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; CXTPDockingPane* pwndPane10 = m_paneManager.CreatePane(IDR_PANE10, CRect(0, 0,200, 120), xtpPaneDockLeft, pwndPane7);<BR>&nbsp;&nbsp;&nbsp; m_paneManager.AttachPane(pwndPane10, pwndPane7);</FONT></FONT></FONT></DIV><FONT size=2><FONT size=2><FONT color=#0000ff size=2><DIV><BR></FONT></FONT></FONT><FONT color=#000080><FONT color=#000080 size=2><EM>&nbsp;&nbsp;&nbsp; //CXTPDockingPaneSidePanel* pPanel = m_paneManager.DockSidePane(pwndPane10, xtpPaneDockRight, CRect(0, 100, 120, 300));<BR>&nbsp;&nbsp;&nbsp; //pPanel-&gt;Collapse();</EM></FONT></FONT></DIV><DIV><FONT color=#000080><FONT color=#000080 size=2><EM><BR>&nbsp;</DIV></EM></FONT></FONT><DIV><FONT color=#000080><FONT color=#000080><FONT color=#000000 size=2>The "neighbor" arg to CreatePane doesn't seem to matter.&nbsp; I've tried the call as shown, as well as with NULL for that arg, with no change in behavior.</FONT></FONT></FONT></DIV><DIV><FONT color=#000080><FONT color=#000080><FONT color=#000000 size=2></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#000080><FONT color=#000080><FONT color=#000000 size=2>Is there any way to get the new pane to behave as if it had been added before the HidePane call?</FONT></FONT></FONT></DIV><DIV><FONT color=#000080><FONT color=#000080><FONT color=#000000 size=2></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#000080><FONT color=#000080><a href="http://forum.codejock.com/uploads/20100626_090856_MainFrm.zip" target="_blank">uploads/20100626_090856_MainFrm.zip</A></FONT></FONT></DIV><DIV><FONT color=#000080><FONT color=#000080>&nbsp;</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Sat, 26 Jun 2010 09:25:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16884&amp;PID=59116&amp;title=adding-a-pane-to-an-unpinned-group#59116</guid>
  </item> 
 </channel>
</rss>