Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - LoadState
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

LoadState

 Post Reply Post Reply
Author
Message
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post Topic: LoadState
    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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2005 at 7:51am
Sounds like you need to re-attach the form to the pane in the Attach event.
Back to Top
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post 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!


Back to Top
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post 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!


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.