+2006-11-29 Chris Toshok <toshok@ximian.com>
+
+ * Form.cs (set_TransparencyKey): only call SetWindowTransparency
+ if it's supported.
+ (set_AllowTransparency): reorder things a little so that the
+ WS_EX_LAYERED style is removed properly.
+
2006-11-29 Chris Toshok <toshok@ximian.com>
[ totally cosmetic eye-candy feature, fixes bug #80089 ]
return;
}
- if ((XplatUI.SupportsTransparency() & TransparencySupport.Set) != 0) {
- allow_transparency = value;
+ allow_transparency = value;
- if (value) {
- if (IsHandleCreated) {
+ if (value) {
+ if (IsHandleCreated) {
+ if ((XplatUI.SupportsTransparency() & TransparencySupport.Set) != 0) {
XplatUI.SetWindowTransparency(Handle, Opacity, TransparencyKey);
}
} else {
AllowTransparency = true;
UpdateStyles();
- XplatUI.SetWindowTransparency(Handle, Opacity, transparency_key);
+ if ((XplatUI.SupportsTransparency () & TransparencySupport.Set) != 0)
+ XplatUI.SetWindowTransparency(Handle, Opacity, transparency_key);
}
}