Author: everaldo
Date: 2006-11-09 03:10:19 -0500 (Thu, 09 Nov 2006)
New Revision: 67574
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBar.cs
Log:
Prevent disabled button to highlight.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-09 05:02:42 UTC (rev 67573)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-09 08:10:19 UTC (rev 67574)
@@ -1,3 +1,7 @@
+2006-11-08 Everaldo Canuto <[EMAIL PROTECTED]>
+
+ * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
+
2006-11-08 Chris Toshok <[EMAIL PROTECTED]>
* PropertyGridView.cs: only call ToggleValue if the item is not
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBar.cs
2006-11-09 05:02:42 UTC (rev 67573)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBar.cs
2006-11-09 08:10:19 UTC (rev 67574)
@@ -754,7 +754,7 @@
if (current_button != null &&
current_button.Rectangle.Contains (loc)) {
if (appearance == ToolBarAppearance.Flat) {
- if (current_button.Hilight ||
current_button.Pushed)
+ if (current_button.Hilight ||
current_button.Pushed || !current_button.Enabled)
return;
current_button.Hilight = true;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches