Author: everaldo
Date: 2007-03-29 09:21:23 -0500 (Thu, 29 Mar 2007)
New Revision: 75143
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
Log:
* NotifyIcon.cs: Prevent Balloon to show in task bar.
2007-03-28 Everaldo Canuto <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-29 14:18:01 UTC (rev 75142)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-29 14:21:23 UTC (rev 75143)
@@ -1,5 +1,9 @@
2007-03-28 Everaldo Canuto <[EMAIL PROTECTED]>
+ * NotifyIcon.cs: Prevent Balloon to show in task bar.
+
+2007-03-28 Everaldo Canuto <[EMAIL PROTECTED]>
+
* XplatUIX11.cs: Prevent system to open more than one balloon.
* NotifyIcon.cs: Prevent system to open more than one balloon and remove
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
2007-03-29 14:18:01 UTC (rev 75142)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
2007-03-29 14:21:23 UTC (rev 75143)
@@ -255,7 +255,6 @@
StartPosition = FormStartPosition.Manual;
FormBorderStyle = FormBorderStyle.None;
- TopMost = true;
MouseDown += new MouseEventHandler
(HandleMouseDown);
@@ -273,7 +272,21 @@
base.Dispose (disposing);
}
+ protected override CreateParams CreateParams {
+ get {
+ CreateParams cp;
+ cp = base.CreateParams;
+
+ cp.Style = (int)WindowStyles.WS_POPUP;
+ cp.Style |=
(int)WindowStyles.WS_CLIPSIBLINGS;
+
+ cp.ExStyle =
(int)(WindowExStyles.WS_EX_TOOLWINDOW | WindowExStyles.WS_EX_TOPMOST);
+
+ return cp;
+ }
+ }
+
public new void Close () {
base.Close ();
XplatUI.SendMessage (owner, Msg.WM_USER,
IntPtr.Zero, (IntPtr) Msg.NIN_BALLOONHIDE);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches