Author: calberto
Date: 2007-10-05 17:43:22 -0400 (Fri, 05 Oct 2007)
New Revision: 87016
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
Log:
2006-10-05 Carlos Alberto Cortez <[EMAIL PROTECTED]>
* TreeView.cs: Move the previous change to the general case (to
call Application.DoEvents in cases where the method was called by
different places).
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-10-05 21:27:48 UTC (rev 87015)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-10-05 21:43:22 UTC (rev 87016)
@@ -1,3 +1,9 @@
+2006-10-05 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+ * TreeView.cs: Move the previous change to the general case (to
+ call Application.DoEvents in cases where the method was called by
+ different places).
+
2007_10-05 Carlos Alberto Cortez <[EMAIL PROTECTED]>
* TreeView.cs: When calling EndEdit and we need to hide the textbox,
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
2007-10-05 21:27:48 UTC (rev 87015)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
2007-10-05 21:43:22 UTC (rev 87016)
@@ -1688,15 +1688,15 @@
if (edit_text_box != null && edit_text_box.Visible) {
edit_text_box.Visible = false;
Focus ();
-
- //
- // If we get a call to BeginEdit from any
AfterLabelEdit handler,
- // the focus seems to always remain in the
TreeView. This call seems
- // to synchronize the focus events - I don't
like it but it works
- //
- Application.DoEvents ();
}
+ //
+ // If we get a call to BeginEdit from any
AfterLabelEdit handler,
+ // the focus seems to always remain in the TreeView.
This call seems
+ // to synchronize the focus events - I don't like it
but it works
+ //
+ Application.DoEvents ();
+
if (edit_node != null && edit_node == node) {
edit_node = null;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches