Author: everaldo
Date: 2007-10-04 05:25:35 -0400 (Thu, 04 Oct 2007)
New Revision: 86862

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 radio buttons 
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:21:52 UTC (rev 86861)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-04 09:25:35 UTC (rev 86862)
@@ -1,5 +1,10 @@
 2007-10-03  Everaldo Canuto  <[EMAIL PROTECTED]>
 
+       * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons 
when
+       text is empty.
+
+2007-10-03  Everaldo Canuto  <[EMAIL PROTECTED]>
+
        * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
        text is empty.
 

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:21:52 UTC (rev 86861)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2007-10-04 09:25:35 UTC (rev 86862)
@@ -4198,7 +4198,8 @@
                        
                        RadioButton_DrawText(radio_button, text_rectangle, dc, 
text_format);
 
-                       RadioButton_DrawFocus(radio_button, dc, text_rectangle);
+                       if (radio_button.Focused && radio_button.Enabled && 
radio_button.appearance != Appearance.Button && radio_button.Text != 
String.Empty)
+                               RadioButton_DrawFocus (radio_button, dc, 
text_rectangle);
                        
                        text_format.Dispose ();
                }
@@ -4230,8 +4231,7 @@
                
                protected virtual void RadioButton_DrawFocus(RadioButton 
radio_button, Graphics dc, Rectangle text_rectangle)
                {
-                       if ( radio_button.Focused && radio_button.appearance != 
Appearance.Button && radio_button.Enabled )
-                               DrawInnerFocusRectangle( dc, text_rectangle, 
radio_button.BackColor );
+                       DrawInnerFocusRectangle (dc, text_rectangle, 
radio_button.BackColor);
                }
                
                

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

Reply via email to