Added new scrolling code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-02-15 20:25:40 +00:00
parent 923d52d6fe
commit 4125131be6
3 changed files with 66 additions and 17 deletions

View File

@@ -763,6 +763,12 @@ int wxWindow::GetScrollRange(int orient) const
void wxWindow::ScrollWindow(int dx, int dy, const wxRect *rect)
{
#ifdef __WXX11__
wxWindowX11::ScrollWindow( dx, dy, rect );
#else
// before scrolling it, ensure that we don't have any unpainted areas
Update();
@@ -779,6 +785,8 @@ void wxWindow::ScrollWindow(int dx, int dy, const wxRect *rect)
r = ScrollNoRefresh(0, dy, rect);
Refresh(TRUE /* erase bkgnd */, &r);
}
#endif
}
wxRect wxWindow::ScrollNoRefresh(int dx, int dy, const wxRect *rectTotal)