LoadState behavior |
Post Reply |
Author | |
Magnetic core
Newbie Joined: 22 August 2003 Location: Switzerland Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 22 August 2003 at 2:49am |
Hello, Not really a bug, but can be problematic (DockingPane v8.0): I create a program with 2 panes, then I use DockingPaneLayout to save its layout into the registry. I modify my program to create only the first pane. When a launch the program again, the second pane is still created (I use the DockingPaneLayout to load my panes layout). I have seen in source code that Load function create panes from register values and doesn't take into account the fact that only one pane has been created. Thanks a lot, Magnetic core Edited by Magnetic core |
|
spike
Groupie Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
|
I have also noticed this problem. Along with another problem when you call LoadState on the DockingPaneLayout. If I create Pane A and Pane B and distribute my application, then decide to modify my application to create Pane C, when LoadState gets called it does not load Pane C into the MainFrame. I guess since it isnt in the registry then it knows nothing about it so it doesnt create it.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You must programmaticaly control this: CXTPDockingPaneLayout layoutNormal(&m_paneManager); // check if we have 3 stored panes |
|
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 |