<?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 : SaveState and LoadState</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : SaveState and LoadState]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 27 Apr 2026 02:37:32 +0000</pubDate>
  <lastBuildDate>Fri, 14 May 2010 04:52:42 +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=16610</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[SaveState and LoadState : You have first define the layout...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58497&amp;title=savestate-and-loadstate#58497</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 16610<br /><strong>Posted:</strong> 14 May 2010 at 4:52am<br /><br />You have first define the layout by LoadLayoutxxx.<DIV>If LoadLayou doesn't create panes, you can create a default-layout.</DIV><DIV>&nbsp;</DIV><DIV>To attach the panes, you have to use the DockingPane_AttachPane-Event.</DIV><DIV>Depending on the associated Item.Id-Property you can than create and attach the corresponding forms/pictureboxes.</DIV><DIV>Define a unique Id for the type of pane.</DIV><DIV>&nbsp;</DIV><DIV>The reason is, that LoadLayout destroyes all prevoius created panes and create new panes on the loaded layout.</DIV>]]>
   </description>
   <pubDate>Fri, 14 May 2010 04:52:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58497&amp;title=savestate-and-loadstate#58497</guid>
  </item> 
  <item>
   <title><![CDATA[SaveState and LoadState : Yes, I have no problem reassigning...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58444&amp;title=savestate-and-loadstate#58444</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5180">pate</a><br /><strong>Subject:</strong> 16610<br /><strong>Posted:</strong> 11 May 2010 at 6:02pm<br /><br />Yes, I have no problem reassigning them multiple times.&nbsp; Using VB6 SP6, and picture boxes as the container controls.&nbsp; I have several preset layouts that the user can load from string.&nbsp; Each time, it loads the layout, then I assign the handles to the panes, then set the titles, color, and pane options.&nbsp; I've never seen it crash, so I assume it is very possible to do. ]]>
   </description>
   <pubDate>Tue, 11 May 2010 18:02:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58444&amp;title=savestate-and-loadstate#58444</guid>
  </item> 
  <item>
   <title><![CDATA[SaveState and LoadState : In my case if I load a layout...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58443&amp;title=savestate-and-loadstate#58443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3743">Carlos Rocha</a><br /><strong>Subject:</strong> 16610<br /><strong>Posted:</strong> 11 May 2010 at 5:44pm<br /><br />In my case if I load a layout AFTER assigning the handles the panes become empty, and if I assign again the handles the program crash.<br />I presume you can (re)assign the handles at any time, right? ]]>
   </description>
   <pubDate>Tue, 11 May 2010 17:44:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58443&amp;title=savestate-and-loadstate#58443</guid>
  </item> 
  <item>
   <title><![CDATA[SaveState and LoadState : &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; Do you re-assign...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58441&amp;title=savestate-and-loadstate#58441</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5180">pate</a><br /><strong>Subject:</strong> 16610<br /><strong>Posted:</strong> 11 May 2010 at 4:56pm<br /><br />&lt;&lt;&lt;&lt;&lt;<DIV>Do you re-assign the handles after LoadLayoutFromString, or the first thing you do is loading the layout and only then assign the handles </DIV><DIV>&gt;&gt;&gt;&gt;&gt;</DIV><DIV>Not sure I understand your question, aren't these two the same thing?&nbsp; Each pane has a container control.&nbsp; After I do&nbsp;ANY Load from string, I have to assign the handles whether it is the first time thru, or if the user is loading in a different layout.</DIV>]]>
   </description>
   <pubDate>Tue, 11 May 2010 16:56:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58441&amp;title=savestate-and-loadstate#58441</guid>
  </item> 
  <item>
   <title><![CDATA[SaveState and LoadState : Thank you for pulling in     But...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58439&amp;title=savestate-and-loadstate#58439</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3743">Carlos Rocha</a><br /><strong>Subject:</strong> 16610<br /><strong>Posted:</strong> 11 May 2010 at 4:46pm<br /><br />Thank you for pulling in  <img src="http://forum.codejock.com/smileys/smiley20.gif" border="0" align="middle"> <br /><br />But I'm not sure if I understand you. Do you re-assign the  handles after LoadLayoutFromString, or the first thing you do is loading the layout and only then assign the handles (didn't try this yet)?]]>
   </description>
   <pubDate>Tue, 11 May 2010 16:46:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58439&amp;title=savestate-and-loadstate#58439</guid>
  </item> 
  <item>
   <title><![CDATA[SaveState and LoadState : That&amp;#039;s the way I do it, after...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58433&amp;title=savestate-and-loadstate#58433</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5180">pate</a><br /><strong>Subject:</strong> 16610<br /><strong>Posted:</strong> 11 May 2010 at 1:11pm<br /><br />That's the way I do it, after I load the Layout from&nbsp;string, the first thing I do is set the handles of the container controls: <DIV>&nbsp;</DIV><DIV>For J = 1 To .PanesCount<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DockingPaneManager.Panes(J).SetHandle Elastic(J).hwnd<BR>Next J<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>then set some other stuff like titles, colors, and pane options.</DIV>]]>
   </description>
   <pubDate>Tue, 11 May 2010 13:11:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58433&amp;title=savestate-and-loadstate#58433</guid>
  </item> 
  <item>
   <title><![CDATA[SaveState and LoadState : Hi,  I want to save user layout...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58129&amp;title=savestate-and-loadstate#58129</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3743">Carlos Rocha</a><br /><strong>Subject:</strong> 16610<br /><strong>Posted:</strong> 19 April 2010 at 1:17am<br /><br />Hi,<br /><br />I want to save user layout preferences in a database to use in the next program execution. For this I'm saving the result of SaveLayoutToString.<br /><br />In the next execution the initial layout is the original, and then I call LoadLayoutFromString. The layout changes like expected, but with empty panes. When I try to reassign the handles the program crashes.<br /><br />Does this have a solution, or do I have to parse the XML and use the relevant values in the CreatePane method?<br /><br /><br />]]>
   </description>
   <pubDate>Mon, 19 Apr 2010 01:17:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16610&amp;PID=58129&amp;title=savestate-and-loadstate#58129</guid>
  </item> 
 </channel>
</rss>