Author: jackson
Date: 2007-01-25 12:09:35 -0500 (Thu, 25 Jan 2007)
New Revision: 71682

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

        * TextControl.cs: Respect ShowSelection when deciding whether or
        not to display the caret, this allows comboboxes to have carets
        when the combotextbox does not have focus.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-25 16:49:35 UTC (rev 71681)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-25 17:09:35 UTC (rev 71682)
@@ -1,5 +1,11 @@
 2007-01-25  Jackson Harper  <[EMAIL PROTECTED]>
 
+       * TextControl.cs: Respect ShowSelection when deciding whether or
+       not to display the caret, this allows comboboxes to have carets
+       when the combotextbox does not have focus.
+
+2007-01-25  Jackson Harper  <[EMAIL PROTECTED]>
+
        * TextControl.cs: Add a Suspend/Resume for updating, basically the
        same as the Suspend/Resume for recalc, except this will do actual
        Invalidates.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2007-01-25 16:49:35 UTC (rev 71681)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2007-01-25 17:09:35 UTC (rev 71682)
@@ -1518,7 +1518,7 @@
                                return;
                        }
 
-                       if (owner.Focused && (!selection_visible || 
owner.show_caret_w_selection)) {
+                       if (owner.ShowSelection && (!selection_visible || 
owner.show_caret_w_selection)) {
                                XplatUI.CaretVisible(owner.Handle, true);
                        }
                }

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

Reply via email to