Author: aolk
Date: 2006-05-17 12:33:42 -0400 (Wed, 17 May 2006)
New Revision: 60788
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
2006-05-17 Alexander Olk <[EMAIL PROTECTED]>
* ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-17 16:08:13 UTC (rev 60787)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-17 16:33:42 UTC (rev 60788)
@@ -1,3 +1,7 @@
+2006-05-17 Alexander Olk <[EMAIL PROTECTED]>
+
+ * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
+
2006-05-16 Peter Dennis Bartok <[EMAIL PROTECTED]>
* XplatUIX11.cs (AddExpose): More sanity checks
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-05-17 16:08:13 UTC (rev 60787)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-05-17 16:33:42 UTC (rev 60788)
@@ -360,6 +360,11 @@
dc.DrawRectangle (ResPool.GetPen (focus_color),
button.ClientRectangle.X, button.ClientRectangle.Y,
button.ClientRectangle.Width - 1,
button.ClientRectangle.Height - 1);
+
+ if (button.has_focus) {
+ Rectangle rect = Rectangle.Inflate
(button.ClientRectangle, -4, -4);
+ ControlPaint.DrawFocusRectangle (dc, rect);
+ }
}
protected virtual void ButtonBase_DrawText(ButtonBase button,
Graphics dc)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches