What I save a perspective to the registry, and I load it again, the entire UI is all over the shot:
Before:
After:
Not only is the notebook missing, I cannot drag the currently docked toolbar.
Kirix Support Forums
SavePerspective and LoadPerspective
6 posts
• Page 1 of 1
SavePerspective and LoadPerspective
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++
I want a legal copy of VS Professional!
Project Administrator for the UPX GUI and developer for wxDev-C++
I want a legal copy of VS Professional!
- Joel
- Registered User
- Posts: 37
- Joined: Mon Jan 09, 2006 1:32 pm
- Location: Singapore
Did you try to just save it into a string first and then reload it? e.g.:
What I'm getting at is this: Does saving it in the registry make it not work, or just the perspective loading and saving?
- Code: Select all
wxString s = m_mgr.SavePerspective();
m_mgr.LoadPerspective(s);
What I'm getting at is this: Does saving it in the registry make it not work, or just the perspective loading and saving?
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
doing what you said works - I have a feeling its because of some wild pointer or something - i dunno
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++
I want a legal copy of VS Professional!
Project Administrator for the UPX GUI and developer for wxDev-C++
I want a legal copy of VS Professional!
- Joel
- Registered User
- Posts: 37
- Joined: Mon Jan 09, 2006 1:32 pm
- Location: Singapore
It may be that you forgot to give all of your panes names. If you don't specify a pane name, wxAUI will generate a random one for you.
If you close the program and open it again, of course the random pane names will be different.
Try using Name() to specify a pane name that doesn't change.
e.g
If you close the program and open it again, of course the random pane names will be different.
Try using Name() to specify a pane name that doesn't change.
e.g
- Code: Select all
m_mgr.AddPane(wnd, wxPaneInfo().
Name(wxT("put_name_here")).Caption(wxT("Pane Caption")));
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
Ah, thanks, maybe you should mention this in the docs? coz in wx its not routine that users have to assign names to controls.
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++
I want a legal copy of VS Professional!
Project Administrator for the UPX GUI and developer for wxDev-C++
I want a legal copy of VS Professional!
- Joel
- Registered User
- Posts: 37
- Joined: Mon Jan 09, 2006 1:32 pm
- Location: Singapore
6 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback