Print Page | Close Window

LoadState

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=2734
Printed Date: 29 September 2024 at 10:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: LoadState
Posted By: jamesblast
Subject: LoadState
Date Posted: 17 August 2005 at 5:37am
Hello,

i add one Pane to my PaneManager by
Explorer.Show
Dim myPane as Pane
Set myPane = Form1.DockingPane.CreatePane(1, 200, 120, DockLeftOf, Nothing)
myPane.Title = "My Title"
myPane.Handle = Explorer.hwnd
myPane.Options = PaneNoHideable

Explorer is my Form to catch.
First of all, i have to add
Explorer.Show
in the first line to get the form displayed in the pane at all.

after this code i execute
Form1.DockingPane.LoadState RegRoot, "Settings", "User"
then, the form moves to the position saved by SaveState before (unload form) BUT the Pane gets grey, just grey. the "Explorer" is not displayed anymore.

this is the only code for the PaneManager, nothing else.

what am i doing wrong?

thank you!

PS: this could be something like:
http://forum.codejock.com/forum_posts.asp?TID=1863



Replies:
Posted By: SuperMario
Date Posted: 17 August 2005 at 7:51am
Sounds like you need to re-attach the form to the pane in the Attach event.


Posted By: jamesblast
Date Posted: 17 August 2005 at 8:39am
could you please explain this with some code.
I did
myPane.Handle = Explorer.hwnd
after the LoadState, but that had no effect.

thank you!




Posted By: jamesblast
Date Posted: 30 August 2005 at 2:44am
could you please give me some more information about this.

DockingPane_AttachPane is not called at all after loadstate!

thank you!




Posted By: Oleg
Date Posted: 30 August 2005 at 5:14am

Hi,

also don't call

myPane.Handle = Explorer.hwnd in Load event.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net