2.5.4.1rc4 release candidate build uploaded

Hi,

A new RC build of wxPython has been uploaded to starship.

   Version: 2.5.4.1rc4
   URL: http://starship.python.net/crew/robind/wxPython/preview/2.5.4.1rc4
   Changes: http://starship.python.net/crew/robind/wxPython/preview/2.5.4.1rc4/CHANGES.html

Have fun!
R'bot

  Version: 2.5.4.1rc4

wx.ScrolledWindow appears to have completely lost the plot
when drawn using wx.BufferedPaintDC. The current view coordinates
look like they count in the wrong direction, and redraw is very
messed up. This is on both Windows and Mac (Linux not tested).

It all works perfectly in 2.5.2.8 (and I did work around the buffer
bitmap size issues).

In detail, when scrolling the ScrolledWindow, it looks like the
BufferedPaintDC scrolls in the wrong direction vertically. I think
horizontal scrolling is as well. This leads to all sorts of
garbage on the screen.

Roger

Roger Binns wrote:

Version: 2.5.4.1rc4

wx.ScrolledWindow appears to have completely lost the plot
when drawn using wx.BufferedPaintDC. The current view coordinates
look like they count in the wrong direction, and redraw is very
messed up. This is on both Windows and Mac (Linux not tested).

It all works perfectly in 2.5.2.8 (and I did work around the buffer
bitmap size issues).

In detail, when scrolling the ScrolledWindow, it looks like the
BufferedPaintDC scrolls in the wrong direction vertically. I think
horizontal scrolling is as well. This leads to all sorts of
garbage on the screen.

From CHANGES.txt:

"""
Fixed wx.BufferedPaintDC for scrolled windows to work whether the
buffer is covering only the client area or the full virtual area of
the scrolled window. By default it will assume that only the client
area is covered. This is different than the old behavior so to
indicate that the entire virtual area is covered simply add a
style=wx.BUFFER_VIRTUAL_AREA parameter.
"""

So try changing your use of wx.BufferedPaintDC to be like this:

     dc = wx.BufferedPaintDC(self, self.buffer, wx.BUFFER_VIRTUAL_AREA)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

So try changing your use of wx.BufferedPaintDC to be like this:

    dc = wx.BufferedPaintDC(self, self.buffer, wx.BUFFER_VIRTUAL_AREA)

That fixed it. I read the text as dealing with a seperate bug in
the BufferedPaintDC. Say you set your virtual size of the scrolled
window to 100x100 and the actual window size was 200x200, then you
would get awful display outside of the 100x100. I went to great
lengths to ensure that my backing bitmap covered whichever was larger
of the virtual size and the actual display area.

Roger