[Mono-bugs] [Bug 80185][Min] Changed - The (optional) layered windows feature does not work properly
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Dec 11 10:43:24 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by monkey at jpobst.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80185
--- shadow/80185 2006-12-10 18:35:25.000000000 -0500
+++ shadow/80185.tmp.9708 2006-12-11 10:43:24.000000000 -0500
@@ -52,6 +52,19 @@
test works fine. is there some enabling/disabling that happens at the
desktop level that could be affecting this?
------- Additional Comments From georgegiolfan at yahoo.com 2006-12-10 18:35 -------
I am using Windows XP and the last stable version of Mono (1.2.2.1
Build 0).
+
+------- Additional Comments From monkey at jpobst.com 2006-12-11 10:43 -------
+I can reproduce this on XP. Following the code, the reason appears to be:
+
+- Opacity setter sets this.opacity to .5
+- Setter calls UpdateStyles
+- UpdateStyles calls Form's CreateParams
+- CreateParams calls Opacity getter to determine if Opacity < 1.0
+- Opacity getter queries GetWindowTransparency, which returns 1.0
+- Because Opacity = 1.0, the layered bit is not set
+
+Maybe the layered bit in CreateParams should be set off of
+AllowTransparency instead of Opacity?
More information about the mono-bugs
mailing list