<?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 : Default Docking Idea</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Default Docking Idea]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 22:13:43 +0000</pubDate>
  <lastBuildDate>Wed, 30 Jan 2008 05:58:50 +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=9270</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[Default Docking Idea : Jemery,   First of all I am...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9270&amp;PID=30650&amp;title=default-docking-idea#30650</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9270<br /><strong>Posted:</strong> 30 January 2008 at 5:58am<br /><br />Jemery, <DIV>&nbsp;</DIV><DIV>First of all I am pretty new with DockingPanes. This is what I do: </DIV><DIV>1) Create the panes and attach them to form.hwnd. (when the app runs for the first time there's nothing in the registry)</DIV><DIV>2) Use the DockingPaneManager_AttachPane event to attach the panes to the forms. (simular to the CreatePanes function).</DIV><DIV>&nbsp;</DIV><DIV>The first time the app runs, the panes will be positioned like I wanted in the CreatePanes function. On shutdown the positions will be saved with DockingPaneManager.SaveState function.&nbsp;When starting the app again the registry will be filled with the settings saved the last time the app was running. Now to get these settings I use the DockingPaneManager.LoadState function. So now all the code in the CreatePanes function doesn't do anything anymore because the DockingPaneManager.LoadState overrides that. Now the DockingPaneManager_AttachPane event will attach the pane to the form.</DIV><DIV>&nbsp;</DIV><DIV>This will work because the user will position the panes to their own needs. BUT: I'm still working on my project and create a pane that I want to add to my main window. This pane doesn't exist in the registry so the pane will not be visible, I don't know why, but it doesn't.&nbsp;This is what I do: don't call Loadstate, then all the panes will be created and shown. Position the panes like I want to and shut the app. SaveState function will save the settings and voila. Next time the panes are positioned with LoadState function. </DIV><DIV>&nbsp;</DIV><DIV>I don't know if this is the right approach.</DIV><DIV>Maybe you have a better solution for me, please let me know</DIV><DIV>&nbsp;</DIV><DIV>Thank you in advance&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 30 Jan 2008 05:58:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9270&amp;PID=30650&amp;title=default-docking-idea#30650</guid>
  </item> 
  <item>
   <title><![CDATA[Default Docking Idea : Just came up with one of those...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9270&amp;PID=30014&amp;title=default-docking-idea#30014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3643">jemery</a><br /><strong>Subject:</strong> 9270<br /><strong>Posted:</strong> 09 January 2008 at 6:25pm<br /><br />Just came up with one of those 'duh' moments I thought I'd share.<br><br>Not sure how other people have their docking systems set up, but I create a default docking pane setup using the manual pane code first.&nbsp; Then I do a check to see if a configuration exists in the registry and load that.&nbsp; This overrides the manual pane setup, naturally.<br><br>However, I find that users sometimes manage to totally screw up their pane setups and this doesn't provide for a good way over overriding this.&nbsp; Since I already was allowing them to save docking configurations (an earlier request as teams like to share configs for different projects), I created an extra config file automatically saved before loading from the registry.&nbsp; This allows for a default config file that can never go out of date (as it's automatically generated).&nbsp; So, it's a simple matter for a user to reload to a default window state by loading that file.<br><br>Problem solved. :)<br>]]>
   </description>
   <pubDate>Wed, 09 Jan 2008 18:25:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9270&amp;PID=30014&amp;title=default-docking-idea#30014</guid>
  </item> 
 </channel>
</rss>