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

LoadStateFromString problem.

 Post Reply Post Reply
Author
Message
slvrbllt View Drop Down
Groupie
Groupie
Avatar

Joined: 16 September 2006
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote slvrbllt Quote  Post ReplyReply Direct Link To This Post Topic: LoadStateFromString problem.
    Posted: 05 November 2008 at 10:27am

Hello,

Here is my scenario:

A default layout string is saved into the application's resources.
When the application starts I get the string into a variable and call the following line:

DockingPane.LoadStateFromString sTmp

then I call:
 
DockingPane.LoadState "MySettings", App.Title, "MainWindow"
 
so that the user saved state takes over the default layout. Everything worked fine until my customer asked for a menu option as to restore the default layout. Here is where the problem occurs!
 
Calling LoadStateFromString again would NOT change the layout, while LoadState DOES,  obviously reverting the layout to the last saved.
 
Please note that I use AttachPane for populating my docking manager and all my panes have an ID > 0.
 
Any help, please ?
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 November 2008 at 1:52am
Hi,
Actually it shold work.
 
Here sample that I tried that works for me:
 
 
Dim s  As String
Private Sub Command1_Click()
DockingPane.LoadStateFromString s
End Sub
Private Sub Form_Load()
DockingPane.CreatePane 1, 100, 100, DockLeftOf
s = DockingPane.SaveStateToString
End Sub
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.236 seconds.