forced redraw before scrolling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2001-06-26 18:47:51 +00:00
parent 9714ffa0c4
commit aeb313f31c

View File

@ -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)