Author: mkestner
Date: 2007-03-22 14:46:46 -0500 (Thu, 22 Mar 2007)
New Revision: 74831
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
2007-03-22 Mike Kestner <[EMAIL PROTECTED]>
* ListView.cs : in FullRowSelect Details mode, only enable box
selection if the user clicks over the "item" column outside of the
text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-22 19:44:20 UTC (rev 74830)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-22 19:46:46 UTC (rev 74831)
@@ -1,3 +1,9 @@
+2007-03-22 Mike Kestner <[EMAIL PROTECTED]>
+
+ * ListView.cs : in FullRowSelect Details mode, only enable box
+ selection if the user clicks over the "item" column outside of the
+ text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
+
2007-03-22 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* Control.cs: ChangeParent: Call Form's ChangingParent even if the
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2007-03-22 19:44:20 UTC (rev 74830)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2007-03-22 19:46:46 UTC (rev 74831)
@@ -1893,7 +1893,8 @@
bool over_text = owner.items
[i].TextBounds.Contains (pt);
if (owner.FullRowSelect) {
clicked_item =
owner.items [i];
- if (!over_text &&
owner.MultiSelect)
+ bool over_item_column =
(me.X > owner.Columns[0].X && me.X < owner.Columns[0].X +
owner.Columns[0].Width);
+ if (!over_text &&
over_item_column && owner.MultiSelect)
box_selecting =
true;
} else if (over_text)
clicked_item =
owner.items [i];
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches