<?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 : Saving placement of panes and command bar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Saving placement of panes and command bar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 23:57:32 +0000</pubDate>
  <lastBuildDate>Wed, 14 Dec 2005 05:36:04 +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=3391</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[Saving placement of panes and command bar : Answered in issuetrack... ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3391&amp;PID=10193&amp;title=saving-placement-of-panes-and-command-bar#10193</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3391<br /><strong>Posted:</strong> 14 December 2005 at 5:36am<br /><br />Answered in issuetrack...]]>
   </description>
   <pubDate>Wed, 14 Dec 2005 05:36:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3391&amp;PID=10193&amp;title=saving-placement-of-panes-and-command-bar#10193</guid>
  </item> 
  <item>
   <title><![CDATA[Saving placement of panes and command bar : Hi again, Attached a simple VC...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3391&amp;PID=10182&amp;title=saving-placement-of-panes-and-command-bar#10182</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1309">simus</a><br /><strong>Subject:</strong> 3391<br /><strong>Posted:</strong> 13 December 2005 at 3:02am<br /><br /><P>Hi again,</P><P>Attached a simple VC project that shows the problem.</P><P>The scenario is :</P><OL><LI>Use View-&gt;Save to file and create "BlankPlacement.xml" file</LI><LI>Use customization to add a new toolbar Custom 1 and move some buttons</LI><LI>Close and restart the layout are correctly saved here</LI><LI>Now use the View-&gt;Load from file to load "BlankPlacement.xml", the Custom 1 is still there and the moved buttons are not correct</LI></OL><P>Please help on we really need this cool feature</P><P>Thanks<A href="http://forum.codejock.com/uploads/simus/2005-12-13_030222_LoadSavePlacementWsp.zip" target="_blank">2005-12-13_030222_LoadSavePlacementWsp.zip</A></P>]]>
   </description>
   <pubDate>Tue, 13 Dec 2005 03:02:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3391&amp;PID=10182&amp;title=saving-placement-of-panes-and-command-bar#10182</guid>
  </item> 
  <item>
   <title><![CDATA[Saving placement of panes and command bar : Hi, I made functions to load...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3391&amp;PID=10167&amp;title=saving-placement-of-panes-and-command-bar#10167</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1309">simus</a><br /><strong>Subject:</strong> 3391<br /><strong>Posted:</strong> 12 December 2005 at 7:42am<br /><br /><P>Hi,</P><P>I made functions to load and save the pane layout and command bars</P><P>I have a problem with the command bars, sometimes it is ok sometimes not. For instance the placement is sometime loaded only after the 2nd try. Or a same toolbar item that is at pos 1 in a saved file and at pos 10 in a 2nd saved file, after loading sevaral times 1st and 2nd file I have the toolbar item at pos 1&nbsp;AND 10.</P><P>Does anyone see something wrong in the following?</P><P>void CMainFrame::SavePlacementToFile(CString filePath){<BR>&nbsp;&nbsp;// Save the layout<BR>&nbsp;&nbsp;CXTPPropExchangeXMLNode px(FALSE, 0, _T("Settings"));<BR>&nbsp;&nbsp;CXTPPropExchangeSection pxLayout(px.GetSection(_T("Layout")));<BR>&nbsp;&nbsp;m_layout-&gt;DoPropExchange(&amp;pxLayout);</P><P>&nbsp;&nbsp;//Save the command bars<BR>&nbsp;&nbsp;XTP_COMMANDBARS_PROPEXCHANGE_PARAM param;<BR>&nbsp;&nbsp;param.bSerializeControls=TRUE;<BR>&nbsp;&nbsp;param.bSaveOnlyCustomized=TRUE;<BR>&nbsp;&nbsp;param.bSerializeImages=TRUE;<BR>&nbsp;&nbsp;param.pCommandBars = GetCommandBars();</P><P>&nbsp;&nbsp;CXTPPropExchangeSection pxCommandBars(px.GetSection(_T("CommandBars")));<BR> &nbsp;&nbsp;GetCommandBars()-&gt;DoPropExchange(&amp;pxComma ndBars, &amp;param);<BR>&nbsp;&nbsp;px.SaveToFile(filePath);<BR>}</P><P><BR>void CMainFrame::LoadPlacementFromFile(CString filePath){<BR>&nbsp;&nbsp;CXTPPropExchangeXMLNode px(TRUE, 0, _T("Settings"));<BR>&nbsp;&nbsp;if ( px.LoadFromFile(filePath) ){<BR>&nbsp;&nbsp;&nbsp;// Load the pane layout<BR>&nbsp;&nbsp;&nbsp;CXTPPropExchangeSection pxLayout(px.GetSection(_T("Layout")));<BR> &nbsp;&nbsp;&nbsp;m_layout-&gt;DoPropExchange(&amp;pxLayout) ;<BR>&nbsp;&nbsp;&nbsp;m_paneManager.SetLayout(m_layout);</P><P>&nbsp;&nbsp;&nbsp;//Load the command bars<BR>&nbsp;&nbsp;&nbsp;XTP_COMMANDBARS_PROPEXCHANGE_PARAM param;<BR>&nbsp;&nbsp;&nbsp;param.bSerializeControls=TRUE;<BR>&nbsp;&nbsp;&nbsp;param.bSaveOnlyCustomized=TRUE;<BR>&nbsp;&nbsp;&nbsp;param.bSerializeImages=TRUE;<BR>&nbsp;&nbsp;&nbsp;param.pCommandBars = GetCommandBars();</P><P>&nbsp;&nbsp;&nbsp;CXTPPropExchangeSection pxCommandBars(px.GetSection(_T("CommandBars")));<BR>&nbsp; &nbsp;&nbsp;GetCommandBars()-&gt;DoPropExchange(&amp;pxComma ndBars, &amp;param);<BR>&nbsp;&nbsp;&nbsp;GetCommandBars()-&gt;RedrawCommandBars();<BR>&nbsp;&nbsp;}<BR>}</P><P>&nbsp;</P><P>Thanks a lot!</P>]]>
   </description>
   <pubDate>Mon, 12 Dec 2005 07:42:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3391&amp;PID=10167&amp;title=saving-placement-of-panes-and-command-bar#10167</guid>
  </item> 
 </channel>
</rss>