<?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 : LoadStateFromString problem.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : LoadStateFromString problem.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 19:56:03 +0000</pubDate>
  <lastBuildDate>Thu, 06 Nov 2008 01:52: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=12614</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[LoadStateFromString problem. : Hi, Actually it shold work.  Here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12614&amp;PID=42654&amp;title=loadstatefromstring-problem#42654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12614<br /><strong>Posted:</strong> 06 November 2008 at 1:52am<br /><br />Hi,<DIV>Actually it shold work.</DIV><DIV>&nbsp;</DIV><DIV>Here sample that I tried that works for me:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Dim s&nbsp; As String</DIV><DIV>Private Sub Command1_Click()<BR>DockingPane.LoadStateFromString s<BR>End Sub</DIV><DIV>Private Sub Form_Load()<BR>DockingPane.CreatePane 1, 100, 100, DockLeftOf</DIV><DIV>s = DockingPane.SaveStateToString<BR>End Sub<BR></DIV>]]>
   </description>
   <pubDate>Thu, 06 Nov 2008 01:52:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12614&amp;PID=42654&amp;title=loadstatefromstring-problem#42654</guid>
  </item> 
  <item>
   <title><![CDATA[LoadStateFromString problem. : Hello, Here is my scenario: A...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12614&amp;PID=42643&amp;title=loadstatefromstring-problem#42643</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2344">slvrbllt</a><br /><strong>Subject:</strong> 12614<br /><strong>Posted:</strong> 05 November 2008 at 10:27am<br /><br /><P>Hello,</P><P>Here is my scenario:</P><P>A default layout string is saved into the application's resources.<BR>When the application starts I get the string into a variable and call the following line:<BR><BR>DockingPane.LoadStateFromString sTmp</P><DIV>then I call:</DIV><DIV>&nbsp;</DIV><DIV>DockingPane.LoadState "MySettings", App.Title, "MainWindow"</DIV><DIV>&nbsp;</DIV><DIV>so that the user saved state takes over the default layout. Everything worked fine until my customer asked for a menu option as to restore the default layout. Here is where the problem occurs!</DIV><DIV>&nbsp;</DIV><DIV>Calling LoadStateFromString again would NOT change the layout, while LoadState DOES,&nbsp; obviously reverting&nbsp;the layout to the last saved.</DIV><DIV>&nbsp;</DIV><DIV>Please note that I use AttachPane for populating my docking manager and all my panes have an ID &gt; 0.</DIV><DIV>&nbsp;</DIV><DIV>Any help, please ?</DIV>]]>
   </description>
   <pubDate>Wed, 05 Nov 2008 10:27:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12614&amp;PID=42643&amp;title=loadstatefromstring-problem#42643</guid>
  </item> 
 </channel>
</rss>