[wx 2.8.0, WinXP, VC 6.0] Refresh pb in a wxScrolledWindow containing transparent sub-window

Sébastien Gallou sebastien.gallou at gmail.com
Wed Jan 31 04:14:53 PST 2007


Hello,

I have some problem when scrolling in a wxScrolledWindow containing a
transparent sub-window.
It seems that the sub-window is not drawn transparent after scroll.

Please consider the wxWidgets's simple scroll sample, modified like that :
- In MySimpleCanvas ctor, I instanciate a wxWindow with wxTRANSPARENT_WINDOW
flag in ctor, which is at 0,0.

When starting application, all is OK, the red rectangle is correctly drawn,
the sub-window is not visible.
When resizing or switching between windows (ALT-TAB), the repainting is OK,
the sub-window is not visible.
Now just scroll down then scroll up : the area of the sub-window overwrites
the red rectangle : the portion of red rectangle of this area is not drawn.

I have just added this line at the end of the MySimpleCanvas ctor of the
scroll sample :

new wxWindow(this, wxID_ANY, wxPoint(0, 0), wxSize(30, 30),
wxTRANSPARENT_WINDOW);


Must I do everything special to draw correctly my transparent sub-window ?
Or is it a bug of scroll managing in wxWidgets ?

Thank for help,
Regards,
S=E9bastien Gallou

My context :
WX      : 2.8.0
OS      : Windows XP
COMPILER: VC++ 6.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070131/29d=
0cd10/attachment.htm


More information about the wx-users mailing list