on scrolling how to redraw as little as

Windows 98 is genetically unable to handle bitmap coordinates larger than 32,767. It's not a wx defect, but rather a design limitation in the GDI driver interface, which is STILL entirely 16-bit code.

···

On Mon, 31 Jan 2005 21:35:33 +0100, "Jean-Michel Fauth" <jmfauth@bluewin.ch> wrote:

Hi,

win98, Py234, wxPy2531

I have nothing to add more to what has been said. Here I submit my
own implementation of a resizable scrolled window. I sometimes
use it to mimic a printer page (1:1). Still to be improved.
With the hope it may help.

*** To Robin ***

If the bitmap size is too? large (25000 x 5000) I get

Traceback (most recent call last):
File "DessinSurScrolledWindow7.py", line 65, in OnPaint
   dc.DrawBitmap(self.BufferBmp, 0, 0)
File "C:\Python24\Lib\site-packages\wx-2.5.3-msw-ansi\wx\_gdi.py", line
2843, in DrawBitmap
   return _gdi_.DC_DrawBitmap(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in
..\..\src\msw\dc.cpp(1055): invalid bitmap in wxDC::DrawBitmap

--
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc.