Oops, sorry, forgot attachment.
Index: System.Windows.Forms/ControlPaint.cs
===================================================================
--- System.Windows.Forms/ControlPaint.cs        (revision 76946)
+++ System.Windows.Forms/ControlPaint.cs        (working copy)
@@ -421,14 +421,8 @@
                        ThemeEngine.Current.CPDrawScrollButton (graphics, 
rectangle, button, state);
                }
 
-               [MonoTODO]
-               private static bool DSFNotImpl = false;
                public static void DrawSelectionFrame(Graphics graphics, bool 
active, Rectangle outsideRect, Rectangle insideRect, Color backColor) {
-                       if (!DSFNotImpl) {
-                               DSFNotImpl = true;
-                               Console.WriteLine("NOT IMPLEMENTED: 
DrawSelectionFrame(Graphics graphics, bool active, Rectangle outsideRect, 
Rectangle insideRect, Color backColor)");
-                       }
-                       //throw new NotImplementedException();
+                       ThemeEngine.Current.CPDrawSelectionFrame(graphics, 
active, outsideRect, insideRect, backColor);
                }
 
                public static void DrawSizeGrip (Graphics graphics, Color 
backColor, Rectangle bounds)
Index: System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
--- System.Windows.Forms/ThemeWin32Classic.cs   (revision 76946)
+++ System.Windows.Forms/ThemeWin32Classic.cs   (working copy)
@@ -2262,8 +2262,7 @@
 
                        Rectangle box_select_rect = 
control.item_control.BoxSelectRectangle;
                        if (!box_select_rect.Size.IsEmpty)
-                               dc.DrawRectangle (ResPool.GetDashPen 
(ColorControlText, DashStyle.Dot), box_select_rect);
-
+                               CPDrawSelectionFrame(dc, control.Focused, 
box_select_rect, box_select_rect, DefaultControlBackColor);
                }
                
                public override void DrawListViewHeader (Graphics dc, Rectangle 
clip, ListView control)
@@ -6407,7 +6406,7 @@
 
                public  override void CPDrawSelectionFrame (Graphics graphics, 
bool active, Rectangle outsideRect, Rectangle insideRect,
                        Color backColor) {
-
+                               
graphics.DrawRectangle(ResPool.GetDashPen(ColorControlText, DashStyle.Dot), 
outsideRect);
                }
 
 
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to