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:
@@ -387,6 +387,10 @@ int wxGenericScrolledWindow::CalcScrollInc(wxScrollWinEvent& event)
|
|||||||
// Adjust the scrollbars - new version.
|
// Adjust the scrollbars - new version.
|
||||||
void wxGenericScrolledWindow::AdjustScrollbars()
|
void wxGenericScrolledWindow::AdjustScrollbars()
|
||||||
{
|
{
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
m_targetWindow->MacUpdateImmediately();
|
||||||
|
#endif
|
||||||
|
|
||||||
int w, h;
|
int w, h;
|
||||||
m_targetWindow->GetClientSize(&w, &h);
|
m_targetWindow->GetClientSize(&w, &h);
|
||||||
|
|
||||||
@@ -452,6 +456,10 @@ void wxGenericScrolledWindow::AdjustScrollbars()
|
|||||||
else
|
else
|
||||||
m_targetWindow->Refresh();
|
m_targetWindow->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
m_targetWindow->MacUpdateImmediately();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override this function if you don't want to have wxGenericScrolledWindow
|
// 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)) &&
|
if (((x_pos == -1) || (x_pos == m_xScrollPosition)) &&
|
||||||
((y_pos == -1) || (y_pos == m_yScrollPosition))) return;
|
((y_pos == -1) || (y_pos == m_yScrollPosition))) return;
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
m_targetWindow->MacUpdateImmediately();
|
||||||
|
#endif
|
||||||
|
|
||||||
int w, h;
|
int w, h;
|
||||||
m_targetWindow->GetClientSize(&w, &h);
|
m_targetWindow->GetClientSize(&w, &h);
|
||||||
|
|
||||||
@@ -561,6 +573,7 @@ void wxGenericScrolledWindow::Scroll( int x_pos, int y_pos )
|
|||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
m_targetWindow->MacUpdateImmediately();
|
m_targetWindow->MacUpdateImmediately();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGenericScrolledWindow::EnableScrolling (bool x_scroll, bool y_scroll)
|
void wxGenericScrolledWindow::EnableScrolling (bool x_scroll, bool y_scroll)
|
||||||
|
Reference in New Issue
Block a user