Author: jackson
Date: 2006-07-11 08:23:43 -0400 (Tue, 11 Jul 2006)
New Revision: 62438

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs
Log:

        - Use the correct active control



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-11 12:21:10 UTC (rev 62437)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-11 12:23:43 UTC (rev 62438)
@@ -11,6 +11,7 @@
        enter/leave events.
        - Don't wrap when processing the tab key, so that focus can be
        moved outside of the container.
+       - Use the correct active control
 
 2006-07-11  Jackson Harper  <[EMAIL PROTECTED]>
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs  
    2006-07-11 12:21:10 UTC (rev 62437)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs  
    2006-07-11 12:23:43 UTC (rev 62438)
@@ -80,12 +80,12 @@
                                // Fire the enter and leave events if possible
                                Form form = FindForm ();
                                if (form != null) {
+                                       Control active = form.ActiveControl;
                                        Control common_container = 
GetCommonContainer (form.ActiveControl, value);
                                        ArrayList chain = new ArrayList ();
-                                       Control walk = active_control;
+                                       Control walk = active;
 
                                        // Generate the leave messages  
-                                       walk = active_control;
                                        while (walk != common_container) {
                                                walk.FireLeave ();
                                                walk = walk.Parent;

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

Reply via email to