]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ScrolledWindow.py
Override OnSize in the scrollsub sample to disable
[wxWidgets.git] / wxPython / demo / ScrolledWindow.py
index 153ceab617836e90b15a0dbab2e6090420c9dceb..df7dd6317246a9f3c43ca904f9943a7a3ac8aabf 100644 (file)
@@ -53,7 +53,7 @@ class MyCanvas(wx.ScrolledWindow):
             # wx.PaintDC and then blit the bitmap to it when dc is
             # deleted.  Since we don't need to draw anything else
             # here that's all there is to it.
-            dc = wx.BufferedPaintDC(self, self.buffer)
+            dc = wx.BufferedPaintDC(self, self.buffer, wx.BUFFER_VIRTUAL_AREA)
         else:
             dc = wx.PaintDC(self)
             self.PrepareDC(dc)