X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/67a5217c4f3c2ee355785ea0ce35c8984c837bfa..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/demo/ScrolledWindow.py?ds=sidebyside diff --git a/wxPython/demo/ScrolledWindow.py b/wxPython/demo/ScrolledWindow.py index df7dd63172..ac36542551 100644 --- a/wxPython/demo/ScrolledWindow.py +++ b/wxPython/demo/ScrolledWindow.py @@ -24,7 +24,8 @@ class MyCanvas(wx.ScrolledWindow): bmp.SetMask(mask) self.bmp = bmp - self.SetScrollbars(20, 20, self.maxWidth/20, self.maxHeight/20) + self.SetVirtualSize((self.maxWidth, self.maxHeight)) + self.SetScrollRate(20,20) if BUFFERED: # Initialize the buffer bitmap. No real DC is needed at this point.