Is there any reason why Save/LoadPaneInfo use these values:
bestw
besth
minh
maxw
maxh
caption
The problem as I see it is that these values are very dependent on the contents of the pane. If the contents have changed (e.g. a new release that has different controls in the pane) then the pane could end up with the wrong size hints. Similarly if the caption has changed, you will end up with the old caption. To date I have used my own save/load code to get around the problem but I would like to fix the problem in SVN.
I propose doing the following:
1) not bother to save/load these values
2) modify LoadPerspective() to keep these values from the original pane
If I submit a patch for this would it be accepted?
Kirix Support Forums
Saving and loading pane info
2 posts
• Page 1 of 1
- Les Newell
- Registered User
- Posts: 4
- Joined: Fri Feb 16, 2007 5:52 am
Re: Saving and loading pane info
Hello,
I certainly feel like you are right. I need to run through some scenarios in order to verify that this won't break anything. Sorry, when I wrote that I felt like I should do everything to serialize the exact state of the pane. However, it's true that certain attributes are more transient than others.
Best,
Ben
I certainly feel like you are right. I need to run through some scenarios in order to verify that this won't break anything. Sorry, when I wrote that I felt like I should do everything to serialize the exact state of the pane. However, it's true that certain attributes are more transient than others.
Best,
Ben
Ben Williams
Kirix Support Team
Kirix Support Team
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
2 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback