[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 23:34:42 PST 2007


Thanks Vadim,

Good notice about wxTRANSPARENT_WINDOW. I don't use this flag anymore.
But I have try to use the SetTransparent method, but for all windows that
doesn't derive from wxTopLevelWindow (just my case...), it return false and
do nothing.
Is there another possibility to set a simple sub-window transparent
(deriving from wxWindow or other) ?
Or must I create my own window class with special paint behavior ?
Or can it be an evolution of wxWidgets ?

Thanks (merci, I think you are french ;-) ).
S=E9bastien


2007/2/1, Vadim Zeitlin <vadim at wxwindows.org>:
>
> On Wed, 31 Jan 2007 13:14:53 +0100 S=E9bastien Gallou <
> sebastien.gallou at gmail.com> wrote:
>
> SG> Please consider the wxWidgets's simple scroll sample, modified like
> that :
> SG> - In MySimpleCanvas ctor, I instanciate a wxWindow with
> wxTRANSPARENT_WINDOW
> SG> flag in ctor, which is at 0,0.
>
> It doesn't directly answer your question but I would advise against using
> this style anyhow. It's Windows-only and was overridden by
> wxTopLevelWindow::
> SetTransparent() method which does work in the other ports for top level
> windows.
>
> Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
>                http://www.tt-solutions.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070201/db6=
b4563/attachment.htm


More information about the wx-users mailing list