[Mono-winforms-list] WS_EX_TRANSPARENT in X11 backend implementation trouble

Ivan N. Zlatev contact at i-nz.net
Tue Mar 13 11:26:51 EDT 2007


I went on hacking up a small patch to implement WS_EX_TRANSPARENT in
the X11 backend. What should happen when this style/flag is set is
that transparency for the control is simulated. When the transparent
control is going to receive WM_PAINT, first its container and  other
controls will be send a WM_PAINT before the transparent control get
its. This behaviour is in Windows itself, so it works with the Win32
xplatui backend and is not Control.cs specific.

The issue with the patch is that even though the order of repaints is
changed I still get black rectangle where the control should be. May
be you can help me out on this one?

I have attached a test-case to CWL wm_paint order for you and the patch.

P.S: One thing I've notices is that zorder when adding initially
controls in x11 is reversed opposed to win32. A bug? (you will have to
swap the below and above controls for proper result wth the testcase
on win32)

P.S2: The patch can be optimized, etc etc.

-- 
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...
Name: X11_WS_EX_TRANSPARENT.patch
Type: text/x-patch
Size: 2364 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070313/91873c23/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transp-test.cs
Type: text/x-csharp
Size: 2839 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070313/91873c23/attachment-0001.bin 


More information about the Mono-winforms-list mailing list