[wx-dev] Re: png-bug
Vadim Zeitlin
vadim at wxwidgets.org
Thu May 1 19:32:21 PDT 2008
On Fri, 02 May 2008 00:08:55 +0200 Christian Buhtz <exsudat at gmx.de> wrote:
CB> Win2000 and earlier doesn't support transparancy so that wx paint it PNG
CB> itself to "emulate" transparancy. Right?
Yes, the native control used by wxStaticBitmap is known not to support
alpha transparency in Windows versions prior to XP.
CB> WinXP and higher support transparancy. I can see it in some applications
CB> and in my own wx-application (wxMenu).
This has nothing to do with wxStaticBitmap though.
CB> But why does wxStaticBitmap doesn't use the XP-buildin transparancy?
It's supposed to. Apparently it doesn't work for some people for unknown
reason.
CB> And what is about the icons in a wxTreeCtrl?
What about them? What do they have to do with wxStaticBitmap?
CB> About wxStaticBitmap I wonder if we don't call this Connect() on all
CB> Windows versions?
This could be done but I'd really like to understand how is it possible
that the same control works just fine for most people (including me) but
doesn't work for some other ones. Of course, this does require spending
time on debugging this, e.g. finding what kind of images exactly expose
this problem. If you don't want to do this, a simple workaround (don't use
wxStaticBitmap at all) was already provided in this thread.
Regards,
VZ
More information about the wx-dev
mailing list