Author: mkestner
Date: 2006-08-28 15:28:55 -0400 (Mon, 28 Aug 2006)
New Revision: 64488
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
2006-08-28 Mike Kestner <[EMAIL PROTECTED]>
* ListView.cs: size the item and header controls for empty and
unscrollable views.
* ThemeWin32Classic.cs: draw disabled backgrounds.
[Fixes #79187]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-28 19:21:41 UTC (rev 64487)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-28 19:28:55 UTC (rev 64488)
@@ -1,3 +1,10 @@
+2006-08-28 Mike Kestner <[EMAIL PROTECTED]>
+
+ * ListView.cs: size the item and header controls for empty and
+ unscrollable views.
+ * ThemeWin32Classic.cs: draw disabled backgrounds.
+ [Fixes #79187]
+
2006-08-28 Chris Toshok <[EMAIL PROTECTED]>
* Form.cs: remove unused "active_form" static field.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2006-08-28 19:21:41 UTC (rev 64487)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2006-08-28 19:28:55 UTC (rev 64488)
@@ -777,6 +777,10 @@
if (!this.scrollable || this.items.Count <= 0) {
h_scroll.Visible = false;
v_scroll.Visible = false;
+ item_control.Location = new Point (0,
header_control.Height);
+ item_control.Height = ClientRectangle.Width -
header_control.Height;
+ item_control.Width = ClientRectangle.Width;
+ header_control.Width = ClientRectangle.Width;
return;
}
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-28 19:21:41 UTC (rev 64487)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-08-28 19:28:55 UTC (rev 64488)
@@ -1541,7 +1541,11 @@
{
bool details = control.View == View.Details;
- dc.FillRectangle (GetControlBackBrush
(control.BackColor), clip);
+ if (control.Enabled)
+ dc.FillRectangle (GetControlBackBrush
(control.BackColor), clip);
+ else
+ dc.FillRectangle (ResPool.GetSolidBrush
(ColorControl), clip);
+
int first = control.FirstVisibleIndex;
for (int i = first; i <= control.LastVisibleIndex; i
++) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches