LoadState |
Post Reply |
Author | |
jamesblast
Groupie Joined: 15 June 2005 Status: Offline Points: 52 |
Post Options
Thanks(0)
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Sounds like you need to re-attach the form to the pane in the Attach event.
|
|
jamesblast
Groupie Joined: 15 June 2005 Status: Offline Points: 52 |
Post Options
Thanks(0)
|
could you please explain this with some code.
I did myPane.Handle = Explorer.hwnd after the LoadState, but that had no effect. thank you! |
|
jamesblast
Groupie Joined: 15 June 2005 Status: Offline Points: 52 |
Post Options
Thanks(0)
|
could you please give me some more information about this.
DockingPane_AttachPane is not called at all after loadstate! thank you! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, also don't call myPane.Handle = Explorer.hwnd in Load event. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |