From: Vadim Zeitlin Date: Mon, 12 Apr 2010 00:37:17 +0000 (+0000) Subject: Update AUI pane resizable status even when it is floating. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/71d77ea604b1d6663a3d2624ec6283ba46b2f008?ds=sidebyside Update AUI pane resizable status even when it is floating. 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 --- diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index a63b4375b0..7bfe00a74f 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -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()); }