Hi All,
docking restrictions were not being saved..
add the following into LoadPerspective in the appropriate place
else if (val_name == wxT("topdock"))
pane.TopDockable( wxAtoi(value.c_str()) );
else if (val_name == wxT("leftdock"))
pane.LeftDockable( wxAtoi(value.c_str()) );
else if (val_name == wxT("rightdock"))
pane.RightDockable( wxAtoi(value.c_str()) );
else if (val_name == wxT("bottomdock"))
pane.BottomDockable( wxAtoi(value.c_str()) );
And add the following code to the SavePerspective in the appropriate place
result += wxString::Format(wxT("topdock=%d;"), pane.IsTopDockable());
result += wxString::Format(wxT("leftdock=%d;"), pane.IsLeftDockable());
result += wxString::Format(wxT("rightdock=%d;"), pane.IsRightDockable());
result += wxString::Format(wxT("bottomdock=%d;"), pane.IsBottomDockable());
Peter
Kirix Support Forums
Loading and Saving Perspective
1 post
• Page 1 of 1
- peterdove
- Registered User
- Posts: 5
- Joined: Thu Mar 16, 2006 6:49 pm
1 post
· Page 1 of 1
Return to wxAUI Patches & Modifications