WxWidgets custom window form (PNG)

I am using wxPython bindings for wxWidgets. Is it possible to create a window in the form in the form of PNG and in the alpha channel count? Take a look at the VS2010 splash screen to see what I mean:

alt text

The highlighted areas (rounded corner and shadow) are not sharp; they use the alpha channel to look smooth.

Update : I want not only a custom form, but also a smooth custom form

Update 2 : there seems to be no way to do this with wx :(

+4
source share
3 answers

Take a look at shapedwindow from wxpython docs and demos

+2
source

If you want to use the Splash screen, you can use the AdvancedSplash class, which supports masking.

0
source

As far as I know, there is at least one way to do this:

  • Create a popup but don’t show it (just create and run). This window should be borderless and should have some fields for future shadow gradients.
  • Adjust part of the underlying window to the image.
  • Show popup. Color the saved image, draw shadows and splash with all the transparent materials that you need.

However, this method is only suitable for screensaver screens :(

0
source

All Articles