Python v2.0, wxPython v2.2, Windows 2000
I have an application where I create a wxStaticBitmap, then draw some
lines over top of the bitmap, using a DC that was defined. Some of the
lines I draw extend outside the area of the bitmap, and are clipped
properly. I then placed the bitmap inside of a scrolled window. If the
size of the scrolled window is large enough that the entire bitmap is
shown, then there are no visible scrollbars, but any lines I draw that
extend into the area where the scrollbars would be are not clipped at
the edge of the bitmap (they appear to be clipped at the edge of where
the scrollbars would be if they were visible on the bottom and right
edge, but at the top and left edge the clipping is at the edge of the
bitmap). I don't think this happens when the scrollbars are visible.
Do I need to set a clip region on the scrolled window, even though I'm
drawing on the bitmap? Or do I need to define a clip region for the
bitmap (I'm currently not defining any clip region, just relying on
clipping at the edge of the window I used to create the DC)?
One other problem that I wanted to mention was that when I put a
notebook in a notebook sizer inside of a wxStaticBoxSizer with other
controls, the notebook doesn't appear. This doesn't happen when the
containing sizer is a wxBoxSizer, and this was a good enough workaround
for me, but just thought I'd bring it up.
Thanks for any help.
Joe Garbarino jgarb@erim-int.com
ยทยทยท
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users