Re: Scroll bar animations when using double buffering
ioprst <[email protected]> Wed, 13 Jan 2021 23:53:11 -0800 (PST)
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
I managed to solve this problem by removing the call to SetDoubleBuffered and also using wx.AutoBufferedPaintDC instead of wx.PaintDC. But now I am getting strange behavior when drawing a rectangle. After scrolling the page, the old rectangles are not deleted. How can I fix this? Code: https://ideone.com/Ihytee понедельник, 11 января 2021 г. в 12:45:27 UTC+3, ioprst: > Hello! > > I am drawing a grid in the cells of which the images will be located > (wx.Bitmap). > > I need to use double buffering to get rid of the flickering (the > flickering appears when I draw the cursor (a square on the selected cell)). > > I noticed that when using double buffering, the EVT_PAINT handler is > called even when I hover over the scrollbar. In this case, the animation of > the scroll bar (smooth color change) occurs in jerks. Without double > buffering, the animation is smooth. > > Is there a way to solve this problem? > > Code: https://ideone.com/odZ2dp > -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/312ee861-3f5a-47c3-b72e-a7b98a151cc8n%40googlegroups.com.