From aeb313f31c44c769c1749d945c7829787ee4c884 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 26 Jun 2001 18:47:51 +0000 Subject: [PATCH 1/1] forced redraw before scrolling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/scrolwin.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/generic/scrolwin.cpp b/src/generic/scrolwin.cpp index 7cd7722062..584c4f5cb8 100644 --- a/src/generic/scrolwin.cpp +++ b/src/generic/scrolwin.cpp @@ -387,6 +387,10 @@ int wxGenericScrolledWindow::CalcScrollInc(wxScrollWinEvent& event) // Adjust the scrollbars - new version. void wxGenericScrolledWindow::AdjustScrollbars() { +#ifdef __WXMAC__ + m_targetWindow->MacUpdateImmediately(); +#endif + int w, h; m_targetWindow->GetClientSize(&w, &h); @@ -452,6 +456,10 @@ void wxGenericScrolledWindow::AdjustScrollbars() else m_targetWindow->Refresh(); } + +#ifdef __WXMAC__ + m_targetWindow->MacUpdateImmediately(); +#endif } // Override this function if you don't want to have wxGenericScrolledWindow @@ -514,6 +522,10 @@ void wxGenericScrolledWindow::Scroll( int x_pos, int y_pos ) if (((x_pos == -1) || (x_pos == m_xScrollPosition)) && ((y_pos == -1) || (y_pos == m_yScrollPosition))) return; +#ifdef __WXMAC__ + m_targetWindow->MacUpdateImmediately(); +#endif + int w, h; m_targetWindow->GetClientSize(&w, &h); @@ -561,6 +573,7 @@ void wxGenericScrolledWindow::Scroll( int x_pos, int y_pos ) #ifdef __WXMAC__ m_targetWindow->MacUpdateImmediately(); #endif + } void wxGenericScrolledWindow::EnableScrolling (bool x_scroll, bool y_scroll) -- 2.45.2