Author: mkestner
Date: 2006-08-29 12:10:09 -0400 (Tue, 29 Aug 2006)
New Revision: 64514
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
2006-08-29 Mike Kestner <[EMAIL PROTECTED]>
* ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
when SubItems.Count < Columns.Count. [Fixes #79167]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-29 15:38:33 UTC (rev 64513)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-29 16:10:09 UTC (rev 64514)
@@ -1,3 +1,8 @@
+2006-08-29 Mike Kestner <[EMAIL PROTECTED]>
+
+ * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
+ when SubItems.Count < Columns.Count. [Fixes #79167]
+
2006-08-28 Peter Dennis Bartok <[EMAIL PROTECTED]>
* TextControl.cs (FindCursor): Fix math error (Fixes #78402)
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-08-29 15:38:33 UTC (rev 64513)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-08-29 16:10:09 UTC (rev 64514)
@@ -1829,6 +1829,20 @@
sub_item_text_rect, format);
}
}
+
+ // Fill in selection for remaining
columns if Column.Count > SubItems.Count
+ if (item.Selected && (control.Focused
|| !control.HideSelection) && control.FullRowSelect) {
+ for (int index = count; index <
control.Columns.Count; index++)
+ {
+ col = control.Columns
[index];
+ sub_item_rect.X =
col.Rect.X - control.h_marker;
+ sub_item_rect.Width =
col.Wd;
+ if (control.Focused)
+
dc.FillRectangle (SystemBrushes.Highlight, sub_item_rect);
+ else
+
dc.FillRectangle (SystemBrushes.Control, sub_item_rect);
+ }
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches