<?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 : LoadState/SaveState not restoring TaskPanel</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : LoadState/SaveState not restoring TaskPanel]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Apr 2026 13:44:56 +0000</pubDate>
  <lastBuildDate>Fri, 12 Oct 2007 04:50:03 +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=8374</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[LoadState/SaveState not restoring TaskPanel : Looks like I didn&amp;#039;t use this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8374&amp;PID=27243&amp;title=loadstate-savestate-not-restoring-taskpanel#27243</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3361">keng</a><br /><strong>Subject:</strong> 8374<br /><strong>Posted:</strong> 12 October 2007 at 4:50am<br /><br />Looks like I didn't use this correctly.&nbsp; I need to use the event AttachPane from the DockingPane control.&nbsp; Once I do this, things work out great.<DIV></DIV>]]>
   </description>
   <pubDate>Fri, 12 Oct 2007 04:50:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8374&amp;PID=27243&amp;title=loadstate-savestate-not-restoring-taskpanel#27243</guid>
  </item> 
  <item>
   <title><![CDATA[LoadState/SaveState not restoring TaskPanel : I hope this is something simple,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8374&amp;PID=27155&amp;title=loadstate-savestate-not-restoring-taskpanel#27155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3361">keng</a><br /><strong>Subject:</strong> 8374<br /><strong>Posted:</strong> 10 October 2007 at 4:23am<br /><br />I hope this is something simple, but I am not seeing the issuing here.&nbsp; In my main form I am setting up my nav bars using DockingPanes.&nbsp; The panes have a TaskPanel in them.&nbsp; I don't wan't to save the items in the TaskPanel, because they may change in the future.&nbsp; So I do the SaveState on the docking panel in the unload of the main form.&nbsp; I do the LoadState in the load of the main form after creating my DockingPane.&nbsp;&nbsp; I made sure that I am using the same names exactly for the LoadState/SaveState.&nbsp; Things look fine, and the DockingPanes come back fine, however the TaskPanel is not shown.&nbsp; I notice that I don't get the resize event, like I do when I run the app for the first time (no saved data).&nbsp; It is like the forms are not attached to the DockingPane.&nbsp; What am I doing wrong? <DIV>&nbsp;</DIV><DIV>Code below...</DIV><DIV>'===================================</DIV><DIV>'Main form</DIV><DIV>'===================================</DIV><DIV>Private Sub MDIForm_Load()<BR>&nbsp;&nbsp;&nbsp; 'dp is DockingPane</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim thePane As Pane<BR>&nbsp;&nbsp;&nbsp; Set thePane = dp.CreatePane(1, 200, 1, DockLeftOf)<BR>&nbsp;&nbsp;&nbsp; thePane.title = "test"<BR>&nbsp;&nbsp;&nbsp; thePane.Handle = frmTest.hwnd</DIV><DIV><BR>&nbsp;&nbsp;&nbsp; dp.LoadState "MyTest", App.title, "DockingPanes"</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub MDIForm_Unload(Cancel As Integer)<BR>&nbsp;&nbsp;&nbsp; On Error GoTo test<BR>&nbsp;&nbsp;&nbsp; 'Docking Pane info...<BR>&nbsp;&nbsp;&nbsp; dp.SaveState "MyTest", App.title, "DockingPanes"</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>'============================</DIV><DIV>'Test form</DIV><DIV>'============================</DIV><DIV>Private Sub frmTest_Load()<BR>&nbsp;&nbsp;&nbsp; With wndTaskPanel<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '.Icons = im.Icons<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SetMargins 0, 2, 0, 2, 2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SetGroupIconSize 16, 16<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '.SetGroupIconSize 32, 32<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SetIconSize 32, 32<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableAnimation = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Behaviour = xtpTaskPanelBehaviourToolbox<BR>&nbsp;&nbsp;&nbsp; End With</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim navBarGroup As TaskPanelGroup<BR>&nbsp;&nbsp;&nbsp; Dim navBarGroupItem As TaskPanelGroupItem<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With wndTaskPanel<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set navBarGroup = .Groups.Add(0, "2138")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With navBarGroup<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '.SetIconSize 32, 32<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .IconIndex = ID_MAIN_NEW<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToolTip = "This is the Order Group - layout default"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ItemLayout = xtpTaskItemLayoutDefault<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set navBarGroupItem = .Items.Add(ID_MAIN_NEW, "2001", xtpTaskItemTypeLink, ID_MAIN_NEW)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With navBarGroupItem<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToolTip = "2500"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set navBarGroupItem = .Items.Add(ID_MAIN_OPEN, "2002", xtpTaskItemTypeLink, ID_MAIN_OPEN)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With navBarGroupItem<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToolTip = "2501"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set navBarGroupItem = .Items.Add(ID_MAIN_DELETE, "2013", xtpTaskItemTypeLink, ID_MAIN_DELETE)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With navBarGroupItem<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToolTip = "2507"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set navBarGroupItem = .Items.Add(ID_MAIN_PREVIEW, "2005", xtpTaskItemTypeLink, ID_MAIN_PREVIEW)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With navBarGroupItem<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToolTip = "2510"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With</DIV><DIV>&nbsp;'Abbreviated the task panel groups and items to make it clearer as to what is occurring.<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub frmTest_Resize()<BR>&nbsp;&nbsp;&nbsp; wndTaskPanel.Left = 0<BR>&nbsp;&nbsp;&nbsp; wndTaskPanel.Top = 0<BR>&nbsp;&nbsp;&nbsp; wndTaskPanel.Width = Me.ScaleWidth<BR>&nbsp;&nbsp;&nbsp; wndTaskPanel.Height = Me.ScaleHeight<BR>End Sub<BR></DIV><DIV>&nbsp;</DIV><DIV>I would send pictures to show what&nbsp;is happening,&nbsp;however I don't have enough permissions to do that.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I am using version 11.2 of the ActiveX controls.</DIV>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 04:23:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8374&amp;PID=27155&amp;title=loadstate-savestate-not-restoring-taskpanel#27155</guid>
  </item> 
 </channel>
</rss>