]> git.saurik.com Git - wxWidgets.git/commitdiff
Update AUI pane resizable status even when it is floating.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Apr 2010 00:37:17 +0000 (00:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Apr 2010 00:37:17 +0000 (00:37 +0000)
Making a pane (e.g. a toolbar) [not] resizable didn't have any effect when it
was floating, fix this by explicitly updating its style to match the internal
state.

Closes #10638.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index a63b4375b0ac282f2cb7b894796f357d9a098e17..7bfe00a74f6005f9bf7a8e9275af5f5d9dbb1ce0 100644 (file)
@@ -2538,6 +2538,14 @@ void wxAuiManager::Update()
                 */
                 }
 
+                // update whether the pane is resizable or not
+                long style = p.frame->GetWindowStyleFlag();
+                if (p.IsFixed())
+                    style &= ~wxRESIZE_BORDER;
+                else
+                    style |= wxRESIZE_BORDER;
+                p.frame->SetWindowStyleFlag(style);
+
                 if (p.frame->IsShown() != p.IsShown())
                     p.frame->Show(p.IsShown());
             }