From: Stefan Csomor Date: Tue, 26 Jun 2001 18:47:51 +0000 (+0000) Subject: forced redraw before scrolling X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/aeb313f31c44c769c1749d945c7829787ee4c884?ds=sidebyside;hp=9714ffa0c4a0de3f5a2e268b667ca0064f72307a forced redraw before scrolling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)