LoadStateFromString problem. |
Post Reply |
Author | |
slvrbllt
Groupie Joined: 16 September 2006 Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 05 November 2008 at 10:27am |
Hello, Here is my scenario: A default layout string is saved into the application's resources. 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 ?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
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 |