Author: calberto
Date: 2007-11-07 04:38:07 -0500 (Wed, 07 Nov 2007)
New Revision: 89078

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
2007-11-07  Carlos Alberto Cortez <[EMAIL PROTECTED]>

        * ListView.cs: When we receive a WM_LBUTTONDOWN message in
        ItemControl, request the focus, as .Net does. This is needed after 
        Control does not request focus anymore when it receives a
        WM_LBUTTONDOWN.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-11-07 09:35:55 UTC (rev 89077)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-11-07 09:38:07 UTC (rev 89078)
@@ -1,3 +1,10 @@
+2007-11-07  Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+       * ListView.cs: When we receive a WM_LBUTTONDOWN message in
+       ItemControl, request the focus, as .Net does. This is needed after 
+       Control does not request focus anymore when it receives a
+       WM_LBUTTONDOWN.
+
 2007-11-06  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * Label.cs: Make DrawImage internal so it can be called from Theme code.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-11-07 09:35:55 UTC (rev 89077)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-11-07 09:38:07 UTC (rev 89078)
@@ -2740,8 +2740,13 @@
                                case Msg.WM_SETFOCUS:
                                        owner.Select (false, true);
                                        break;
+                               case Msg.WM_LBUTTONDOWN:
+                                       if (!Focused)
+                                               owner.Select (false, true);
+                                       break;
                                case Msg.WM_RBUTTONDOWN:
-                                       owner.Select (false, true);
+                                       if (!Focused)
+                                               owner.Select (false, true);
                                        break;
                                default:
                                        break;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to