[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-winforms-list
Subject: Re: [Mono-winforms-list] [PATCH] implementation for
From: "Sergey Volk" <sergey.volk () gmail ! com>
Date: 2007-05-08 17:47:50
Message-ID: 94ed53c0705081047i56bc879dpbfdb1a115d41c251 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Oops, sorry, forgot attachment.
[Attachment #5 (text/html)]
<br>Oops, sorry, forgot attachment.<br>
["mwf-drawselectionframe.patch" (text/plain)]
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 - Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic