<?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 : DockingPaneManager State</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : DockingPaneManager State]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 07:26:16 +0000</pubDate>
  <lastBuildDate>Thu, 02 Feb 2012 20:07:24 +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=14821</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[DockingPaneManager State :    Public Sub DockingPanes_Load(objdp...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14821&amp;PID=67540&amp;title=dockingpanemanager-state#67540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7305">Kavian</a><br /><strong>Subject:</strong> 14821<br /><strong>Posted:</strong> 02 February 2012 at 8:07pm<br /><br /><table width="99%"><tr><td><pre class="BBcode"><div>Public Sub DockingPanes_Load(objdp As DockingPane)<br>&nbsp;&nbsp;&nbsp; Dim px As PropExchange<br>&nbsp;&nbsp;&nbsp; Set px = XtremeDockingPane.CreatePropExchange()</div><div>&nbsp;&nbsp;&nbsp; px.CreateAsXML True, "DPSettings"</div><div>&nbsp;&nbsp;&nbsp; If (px.LoadFromFile(App.Path&nbsp;&amp;&nbsp;"dp.xml")) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objdp.DestroyAll<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objdp.Layout.DoPropExchange px<br>&nbsp;&nbsp;&nbsp; End If</div><div>&nbsp;&nbsp;&nbsp; objdp.RecalcLayout<br>End Sub</div><div></pre></td></tr></table></div><div>&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode"><div>Public Sub DockingPanes_Save(objdp As DockingPane)<br>&nbsp;&nbsp;&nbsp; Dim px As PropExchange<br>&nbsp;&nbsp;&nbsp; Set px = XtremeDockingPane.CreatePropExchange()</div><div>&nbsp;&nbsp;&nbsp; px.CreateAsXML False, "DPSettings"</div><div>&nbsp;&nbsp;&nbsp; objdp.Layout.DoPropExchange px</div><div>&nbsp;&nbsp;&nbsp; px.SaveToFile App.Path &amp;&nbsp;"dp.xml"<br>End Sub</div><div></pre></td></tr></table></div></div>]]>
   </description>
   <pubDate>Thu, 02 Feb 2012 20:07:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14821&amp;PID=67540&amp;title=dockingpanemanager-state#67540</guid>
  </item> 
  <item>
   <title><![CDATA[DockingPaneManager State : Hi. I am using v13 ActiveX from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14821&amp;PID=51259&amp;title=dockingpanemanager-state#51259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5412">martin.kelley</a><br /><strong>Subject:</strong> 14821<br /><strong>Posted:</strong> 24 July 2009 at 5:37am<br /><br />Hi. I am using v13 ActiveX from c#<DIV>I am trying to save the layout of the Panes on my form and restore them when the form is next loaded </DIV><DIV>In my FormClosed event I have</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><FONT color=#2b91af>DockingPaneGlobalSettings</FONT> glob = <FONT color=#0000ff><FONT color=#0000ff>new</FONT></FONT> <FONT color=#2b91af><FONT color=#2b91af>DockingPaneGlobalSettings</FONT></FONT>();</FONT></DIV><DIV><FONT size=2><FONT color=#2b91af>PropExchange</FONT><FONT size=2> pEx=glob.CreatePropExchange();</FONT></FONT></DIV><DIV><FONT size=2><FONT color=#2b91af>DockingPaneLayout</FONT> myLayout=DockingPaneManager.CreateLayout();</FONT></DIV><DIV>DockingPaneManager.GetLayout(myLayout);</DIV><DIV>pEx.CreateAsXML(<FONT color=#0000ff size=2><FONT color=#0000ff size=2>false</FONT></FONT><FONT size=2>, </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"MaintenanceItem"</FONT></FONT><FONT size=2>);</FONT></DIV><DIV>myLayout.DoPropExchange(pEx);</DIV><DIV><DIV>pEx.SaveToFile(<FONT color=#a31515 size=2><FONT color=#a31515 size=2>@"c:\Test.xml"</FONT></FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>In my FormLoad event (at the very end)&nbsp;I have</FONT></DIV><DIV>DockingPaneGlobalSettings<FONT size=2> globSettings=</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>DockingPaneGlobalSettings</FONT></FONT><FONT size=2>();</FONT></DIV><DIV>PropExchange<FONT color=#000000 size=2> pEx = globSettings.CreatePropExchange();</FONT></DIV><DIV>DockingPaneLayout<FONT size=2> myLayout=DockingPaneManager.CreateLayout();</FONT></DIV><DIV><FONT size=2>pEx.CreateAsXML(<FONT color=#0000ff><FONT color=#0000ff>true</FONT></FONT>,<FONT color=#a31515><FONT color=#a31515>"MaintenanceItem"</FONT></FONT>);</FONT></DIV><DIV><FONT color=#0000ff>if</FONT><FONT size=2>(pEx.LoadFromFile(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>@"c:\Test.xml"</FONT></FONT><FONT size=2>))</FONT></DIV><DIV>{</DIV><DIV><FONT size=2><FONT size=2>&nbsp; myLayout.DoPropExchange(pEx);</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>&nbsp; DockingPaneManager.SetLayout(myLayout);</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>}</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2>The file is saved and seems to relect the state of the panes. But the state of the panes is not restored by the code I have in FormLoad</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2>What am I missing?&nbsp;&nbsp; The SaveStae and LoadState methods seem to have the same problem; a registry entry is made but</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>Loading it seems to have no effect on the Pane layout.</DIV></FONT><DIV>&nbsp;</DIV><DIV>Thanks</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 24 Jul 2009 05:37:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14821&amp;PID=51259&amp;title=dockingpanemanager-state#51259</guid>
  </item> 
 </channel>
</rss>