[Mono-bugs] [Bug 79490][Nor] New - Cannot select text in a TextBox immediately after a doubleclick
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Sep 25 10:44:32 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by kuba.brecka at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79490
--- shadow/79490 2006-09-25 10:44:32.000000000 -0400
+++ shadow/79490.tmp.678 2006-09-25 10:44:32.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 79490
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: Windows XP SP1
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: kuba.brecka at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Cannot select text in a TextBox immediately after a doubleclick
+
+Tested on Windows XP SP1 using Mono 1.1.17.1.
+
+Steps to reproduce:
+1. Run the following code.
+2. Somewhere in the middle of the TextBox, do a "double-and-a-half-click"
+(do a regular double click, then immediately press the mouse button and
+keep it pressed)
+3. Move the cursor to the left and right in the TextBox, notice that the
+whole TextBox field's content is selected, but the system caret is moving
+with the cursor, like you are selecting the text.
+
+Actual results:
+The whole text remains selected, but the system caret moves with the mouse.
+
+Expected results:
+After the 2.5click, you should be in regular text selecting mode.
+
+Reproduce code:
+
+using System;
+using System.Windows.Forms;
+
+namespace MonoTest24
+{
+ public class Form1 : Form
+ {
+ static void Main()
+ {
+ Application.Run(new Form1());
+ }
+
+ public Form1()
+ {
+ TextBox T = new TextBox();
+ T.Font = new
+System.Drawing.Font(System.Drawing.FontFamily.GenericSerif, 20);
+ T.Width = 200;
+ T.Text = "abcdefghijkl";
+ T.SelectionLength = 0;
+ T.SelectionStart = 0;
+
+ Controls.Add(T);
+ }
+ }
+}
More information about the mono-bugs
mailing list