Author: jackson
Date: 2005-10-31 20:58:06 -0500 (Mon, 31 Oct 2005)
New Revision: 52436
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
Log:
* ListBox.cs: Invalidate if the area is visible at all not just
contained in the visible rect. Fixes unselection of semi visible
items.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-11-01 01:50:46 UTC (rev 52435)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-11-01 01:58:06 UTC (rev 52436)
@@ -1,5 +1,11 @@
2005-10-31 Jackson Harper <[EMAIL PROTECTED]>
+ * ListBox.cs: Invalidate if the area is visible at all not just
+ contained in the visible rect. Fixes unselection of semi visible
+ items.
+
+2005-10-31 Jackson Harper <[EMAIL PROTECTED]>
+
* Control.cs: Consistently name the dnd methods. Make them
internal so we can override them to match some MS behavoir
internally.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
2005-11-01 01:50:46 UTC (rev 52435)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
2005-11-01 01:58:06 UTC (rev 52436)
@@ -1500,7 +1500,7 @@
selected_indices.AddIndex (index);
selected_items.AddObject (Items[index]);
- if (ClientRectangle.Contains (invalidate))
+ if (ClientRectangle.IntersectsWith (invalidate))
Invalidate (invalidate);
}
@@ -1628,7 +1628,7 @@
selected_items.RemoveObject (Items[index]);
}
- if (ClientRectangle.Contains (invalidate))
+ if (ClientRectangle.IntersectsWith (invalidate))
Invalidate (invalidate);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches