Author: mkestner
Date: 2006-10-20 11:51:02 -0400 (Fri, 20 Oct 2006)
New Revision: 66833
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs
Log:
2006-10-20 Mike Kestner <[EMAIL PROTECTED]>
* MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
a working win32 NC invalidation mechanism, we can't invalidate
menus. [Fixes #79705]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-20 15:21:16 UTC (rev 66832)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-20 15:51:02 UTC (rev 66833)
@@ -1,5 +1,11 @@
2006-10-20 Mike Kestner <[EMAIL PROTECTED]>
+ * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
+ a working win32 NC invalidation mechanism, we can't invalidate
+ menus. [Fixes #79705]
+
+2006-10-20 Mike Kestner <[EMAIL PROTECTED]>
+
* ListBox.cs : don't update the VScrollbar if the list is empty,
just hide it. [Fixes #79692]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs
2006-10-20 15:21:16 UTC (rev 66832)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs
2006-10-20 15:51:02 UTC (rev 66833)
@@ -144,11 +144,10 @@
if (form == null)
return;
- /* this is a disgusting hack. this code.. ugh. */
- Rectangle r = Rect;
+ Rectangle clip = Rect;
Height = 0; /* need this so the theme code will
re-layout the menu items
(why is the theme code doing the layout?
argh) */
- form.Invalidate (r);
+ Draw (clip);
}
/* Mouse events from the form */
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches