Kirix Support Forums

Fix for wxAUI 0.9 floating pane show/hide problem

Please post any wxAUI patches or modifications you've created here. Thanks!

Fix for wxAUI 0.9 floating pane show/hide problem

Postby Ben on Sun Jan 01, 2006 12:53 pm

wxAUI 0.9 has a problem showing and hiding floated frames (once they are floated...when docked everything works properly).

Code: Select all
Index: src/manager.cpp
===================================================================
--- src/manager.cpp   (revision 774)
+++ src/manager.cpp   (working copy)
@@ -2152,7 +2152,11 @@
                 
                 frame->SetPaneWindow(p);
                 p.frame = frame;
-                frame->Show();
+
+                if (p.IsShown())
+                {
+                    frame->Show();
+                }
             }
              else
             {
@@ -2164,6 +2168,8 @@
                                      -1, -1, wxSIZE_USE_EXISTING);
                     //p.frame->Move(p.floating_pos.x, p.floating_pos.y);
                 }
+
+                 p.frame->Show(p.IsShown());
             }
         }
          else
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to wxAUI Patches & Modifications