@michaelvollrath, @antoine, @taraskydon,
below is the python code i’ve started with. It contains a single button to close it and the form has some padding so you’ll see its size and have something to grip on.
SampleTransparentForm_CG.py (1.7 KB)
If you’re under windows, change Opacity
in line 41 from 0.1
to 0.0
which makes the form background 100% transparent.
On a mac, change the number 25
in line 45 to 0
, which gives 100% transparency (except for the button which is intended). Be aware on both platforms to provide a button or handler to close it.
So there’s my apple pie, has some slick shadows too:
the tricky part was windows and to change the brush by cloning it without importing PresentationCore
_
c.