Author: joncham
Date: 2006-01-09 23:48:44 -0500 (Mon, 09 Jan 2006)
New Revision: 55284
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
* Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-10 04:46:55 UTC (rev 55283)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-10 04:48:44 UTC (rev 55284)
@@ -1,5 +1,9 @@
2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
+ * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
+
+2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
+
* PrintControllerWithStatusDialog.cs: Update page number in dialog.
2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2006-01-10 04:46:55 UTC (rev 55283)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2006-01-10 04:48:44 UTC (rev 55284)
@@ -609,8 +609,7 @@
opacity = value;
UpdateStyles();
- if (Opacity < 1.0)
- XplatUI.SetWindowTransparency(Handle,
opacity, TransparencyKey);
+ XplatUI.SetWindowTransparency(Handle, opacity,
TransparencyKey);
}
}
@@ -774,8 +773,7 @@
transparency_key = value;
UpdateStyles();
- if (TransparencyKey != Color.Empty)
- XplatUI.SetWindowTransparency(Handle,
Opacity, TransparencyKey);
+ XplatUI.SetWindowTransparency(Handle, Opacity,
TransparencyKey);
}
}
@@ -896,6 +894,9 @@
cp.ExStyle |=
(int)WindowStyles.WS_EX_CONTEXTHELP;
}
+ if (Visible)
+ cp.Style |=
(int)WindowStyles.WS_VISIBLE;
+
if (Opacity < 1.0 || TransparencyKey !=
Color.Empty) {
cp.ExStyle |=
(int)WindowStyles.WS_EX_LAYERED;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches