Kirix Support Forums

Saving and loading pane info

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

Saving and loading pane info

Postby Les Newell on Thu Feb 14, 2008 9:08 am

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?
Les Newell
Registered User
 
Posts: 4
Joined: Fri Feb 16, 2007 5:52 am

Re: Saving and loading pane info

Postby Ben on Tue Feb 26, 2008 12:13 am

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
Ben Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to wxAUI Questions, Thoughts & Feedback