Title of IPane fails after LoadStateFromString |
Post Reply |
Author | |
DigiDog
Newbie Joined: 22 August 2007 Location: United States Status: Offline Points: 18 |
Post Options
Thanks(0)
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
DigiDog
Newbie Joined: 22 August 2007 Location: United States Status: Offline Points: 18 |
Post Options
Thanks(0)
|
That did the trick!!!!
So simple.
Thanks!!!
|
|
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 |