Print Page | Close Window

Title of IPane fails after LoadStateFromString

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=10106
Printed Date: 02 July 2024 at 10:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Title of IPane fails after LoadStateFromString
Posted By: DigiDog
Subject: Title of IPane fails after LoadStateFromString
Date 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.
 
 



Replies:
Posted By: Oleg
Date 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


Posted By: DigiDog
Date Posted: 06 April 2008 at 7:43am
That did the trick!!!! 
So simple.
 
Thanks!!!



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