From 8d361e835331bd48245957e1ca9461d1b119f7f8 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 22 Aug 2006 12:30:07 +0000 Subject: [PATCH] Commited Bryan Petty's blind fix patch. Added event.Skip() to size event handler in frame manager and removed the wrong work around for this. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/floatpane.cpp | 12 +-------- src/aui/framemanager.cpp | 54 ++++++++++++++++++++++++++-------------- 2 files changed, 36 insertions(+), 30 deletions(-) diff --git a/src/aui/floatpane.cpp b/src/aui/floatpane.cpp index 82bd93fb7d..22940e6a80 100644 --- a/src/aui/floatpane.cpp +++ b/src/aui/floatpane.cpp @@ -51,7 +51,7 @@ wxFloatingPane::wxFloatingPane(wxWindow* parent, m_moving = false; m_last_rect = wxRect(); m_mgr.SetManagedWindow(this); - SetExtraStyle(wxWS_EX_PROCESS_IDLE); + // SetExtraStyle(wxWS_EX_PROCESS_IDLE); } wxFloatingPane::~wxFloatingPane() @@ -125,16 +125,6 @@ void wxFloatingPane::OnClose(wxCloseEvent& evt) void wxFloatingPane::OnMoveEvent(wxMoveEvent& event) { -#ifdef __WXGTK__ - // On wxGTK 2.6 and 2.7 for some unknown reason, wxSizeEvents are not - // emitted for wxFloatingPanes when they are manually resized. - // See Bug #1528554. - // However, it does (fortunately) wrongly emit wxMoveEvent in this scenario. - // So we having on that to update the floating pane size - let's hope noone - // fixes this useful bug, without fixing the above. - m_owner_mgr->OnFloatingPaneResized(m_pane_window, GetSize()); -#endif - wxRect win_rect = GetRect(); // skip the first move event diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 3aec290a2a..0018ab37b0 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -85,6 +85,7 @@ public: #else m_CanSetShape = true; #endif + m_Region = wxRegion(0, 0, 0, 0); SetTransparent(0); } @@ -95,28 +96,24 @@ public: int w=100; // some defaults int h=100; GetClientSize(&w, &h); - if ((alpha != m_Amount) || (m_MaxWidth