Author: jackson
Date: 2006-11-08 14:53:10 -0500 (Wed, 08 Nov 2006)
New Revision: 67547
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
* TextBoxBase.cs: Only rich text box can do full line selects.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-08 17:56:23 UTC (rev 67546)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-08 19:53:10 UTC (rev 67547)
@@ -2,6 +2,7 @@
* TextControl.cs: When combining lines carry over the line end
style from the end line.
+ * TextBoxBase.cs: Only rich text box can do full line selects.
2006-11-07 Everaldo Canuto <[EMAIL PROTECTED]>
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-11-08 17:56:23 UTC (rev 67546)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-11-08 19:53:10 UTC (rev 67547)
@@ -1420,7 +1420,7 @@
#endif
document.SetSelectionToCaret(true);
click_mode =
CaretSelection.Position;
- } else {
+ } else if (this is RichTextBox) {
#if DebugClick
Console.WriteLine("Tripple Click Selecting line");
#endif
@@ -1435,7 +1435,7 @@
}
click_mode =
CaretSelection.Word;
document.ExpandSelection(CaretSelection.Word, false); // Setting initial
selection
- } else {
+ } else if (this is RichTextBox) {
click_mode =
CaretSelection.Line;
document.ExpandSelection(CaretSelection.Line, false); // Setting initial
selection
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches