Author: mkestner
Date: 2006-05-19 11:04:18 -0400 (Fri, 19 May 2006)
New Revision: 60863
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
Log:
2006-05-19 Mike Kestner <[EMAIL PROTECTED]>
* ComboBox.cs: fix mouse motion selection to use MousePosition and
PointToClient, since Capture is set. Fixes #78344.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-19 14:36:57 UTC (rev 60862)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-19 15:04:18 UTC (rev 60863)
@@ -1,5 +1,10 @@
-2006-05-18 Mike Kestner <[EMAIL PROTECTED]>
+2006-05-19 Mike Kestner <[EMAIL PROTECTED]>
+ * ComboBox.cs: fix mouse motion selection to use MousePosition and
+ PointToClient, since Capture is set. Fixes #78344.
+
+2006-05-19 Mike Kestner <[EMAIL PROTECTED]>
+
* ListView.cs: match MS behavior in Details view where items are not
drawn if Columns.Count == 0.
* ThemeWin32Classic.cs: only highlight ListView selection if focused.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
2006-05-19 14:36:57 UTC (rev 60862)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
2006-05-19 15:04:18 UTC (rev 60863)
@@ -1766,7 +1766,8 @@
if (owner.DropDownStyle == ComboBoxStyle.Simple)
return;
- int index = IndexFromPointDisplayRectangle
(e.X, e.Y);
+ Point pt = PointToClient
(Control.MousePosition);
+ int index = IndexFromPointDisplayRectangle
(pt.X, pt.Y);
if (index != -1) {
HighlightedIndex = index;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches