Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Title of IPane fails after LoadStateFromString
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Title of IPane fails after LoadStateFromString

 Post Reply Post Reply
Author
Message
DigiDog View Drop Down
Newbie
Newbie
Avatar

Joined: 22 August 2007
Location: United States
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote DigiDog Quote  Post ReplyReply Direct Link To This Post Topic: Title of IPane fails after LoadStateFromString
    Posted: 05 April 2008 at 9:49pm
If I assign a string to the .Title method after LoadStateFromString it gives the error "Method 'Title' of Object 'IPane' failed".
 
PaneJN.LoadStateFromString GetPaneState(1)
JNV.Title = "Pane Title"
   'Fails
 
but
 
JNV.Title = "Pane Title"   'Works
 
Also, If I use SaveState and LoadState I don't get any error but the titles do not change.
 
JNV is a subpane of PaneJN.
Using VB6 and Docking Pane Control Version 11.2.0.
 
Thanks for your help.
 
 
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: 06 April 2008 at 3:20am
Hi,
After you use LoadStateFromString or some Load method JNV pointer will be not valid anymore. - LoadState will create all new panes.
 
call it before LoadState or use FindPane to find pointer to new Pane.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
DigiDog View Drop Down
Newbie
Newbie
Avatar

Joined: 22 August 2007
Location: United States
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote DigiDog Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2008 at 7:43am
That did the trick!!!! 
So simple.
 
Thanks!!!
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.156 seconds.