[Mono-winforms-list] WS_EX_TRANSPARENT implementation for the X11 backend

Ivan N. Zlatev contact at i-nz.net
Tue Jul 24 05:51:11 EDT 2007

I have hacked up the following implementation for WS_EX_TRANSPARENT
for the X11 backend. It will try to get a RGBA Visual, create a RGBA
Colormap and set that as the colormap to be used for CreateWindow.

The issue is that even with the RGBA colormap and
BackColor.Transparent set for the control it isn't transparent. I have
tried filling the client area in OnPaintBackground with
Brushes.Transparent but that also just results a black client
rectangle. Could it be that Color.Transparent doesn't match what is
expected by X?

May be someone can take a look and help me to figure out what is
wrong? Patch and test case attached.

Ivan N. Zlatev

Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-patch
Size: 4155 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070724/00d58598/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transp.cs
Type: text/x-csharp
Size: 2837 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070724/00d58598/attachment-0001.bin 

More information about the Mono-winforms-list mailing list