From: George Tasker Date: Tue, 29 Jan 2002 21:27:42 +0000 (+0000) Subject: Fixes some position issues of where to draw heart of the toolbar in the window -... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4cf0b34ce7a69994b5c3abb4884ed87dcc2ab01b?ds=inline Fixes some position issues of where to draw heart of the toolbar in the window - Submitted by Hans Van Leemputten git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/fl/controlbar.cpp b/contrib/src/fl/controlbar.cpp index 93234730f6..c1a3af514b 100644 --- a/contrib/src/fl/controlbar.cpp +++ b/contrib/src/fl/controlbar.cpp @@ -1149,8 +1149,13 @@ void wxFrameLayout::PositionPanes() void wxFrameLayout::OnSize( wxSizeEvent& event ) { if ( event.GetEventObject() == (wxObject*) mpFrame ) - + { + GetUpdatesManager().OnStartChanges(); RecalcLayout(TRUE); + GetUpdatesManager().OnFinishChanges(); + GetUpdatesManager().UpdateNow(); + } + } /*** protected members ***/ @@ -1551,9 +1556,11 @@ void wxFrameLayout::SetPaneBackground( const wxColour& colour ) void wxFrameLayout::RefreshNow( bool recalcLayout ) { - if ( recalcLayout ) RecalcLayout( TRUE ); + if ( recalcLayout ) + RecalcLayout( TRUE ); - if ( mpFrame ) mpFrame->Refresh(); + if ( mpFrame ) + mpFrame->Refresh(); } /*** plugin-related methods ***/