wxX11:
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user