Reputation: 1179
I'm using wxPython bindings for wxWidgets. Is it possible to create custom-shaped window from PNG image and in count alpha-channel? Take a look at VS2010 splash screen to see what I mean:
Highlighted zones (rounded corner and shadow) are not sharp, they use alpha-channel to look smooth.
Update: I want not only custom shape, but smooth custom shape
Update 2: Seems like there is no way to do this with wx :(
Upvotes: 4
Views: 2442
Reputation: 8136
As far as I know there is at least one way of accomplishing this:
However this method is only suitable for splash screens :(
Upvotes: 0
Reputation: 6160
Have a look at the shapedwindow
from the docs and demos of wxpython
Upvotes: 2
Reputation: 31928
If you want a Splash screen you can use the AdvancedSplash class which supports masking.
Upvotes: 0