Author: everaldo
Date: 2007-10-04 05:21:52 -0400 (Thu, 04 Oct 2007)
New Revision: 86861

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
In System.Windows.Forms:
        * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
        text is empty.

2007-10-03  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-10-04 09:10:48 UTC (rev 86860)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-04 09:21:52 UTC (rev 86861)
@@ -1,5 +1,10 @@
 2007-10-03  Everaldo Canuto  <[EMAIL PROTECTED]>
 
+       * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
+       text is empty.
+
+2007-10-03  Everaldo Canuto  <[EMAIL PROTECTED]>
+
        * ComboBox.cs: On contructor use backgound_color instead of BackColor to
        prevent calling of OnBackColorChanged. Fixes #325321.
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2007-10-04 09:10:48 UTC (rev 86860)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2007-10-04 09:21:52 UTC (rev 86861)
@@ -1252,7 +1252,8 @@
                        
                        CheckBox_DrawText(checkbox, text_rectangle, dc, 
text_format);
 
-                       CheckBox_DrawFocus(checkbox, dc, text_rectangle);
+                       if (checkbox.Focused && checkbox.Enabled && 
checkbox.appearance != Appearance.Button && checkbox.Text != String.Empty)
+                               CheckBox_DrawFocus (checkbox, dc, 
text_rectangle);
 
                        text_format.Dispose ();
                }
@@ -1285,8 +1286,7 @@
                
                protected virtual void CheckBox_DrawFocus( CheckBox checkbox, 
Graphics dc, Rectangle text_rectangle )
                {
-                       if ( checkbox.Focused && checkbox.appearance != 
Appearance.Button && checkbox.Enabled )
-                               DrawInnerFocusRectangle( dc, text_rectangle, 
checkbox.BackColor );
+                       DrawInnerFocusRectangle (dc, text_rectangle, 
checkbox.BackColor);
                }
 
                // renders a checkBox with the Flat and Popup FlatStyle

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to