[Mono-bugs] [Bug 78402][Nor] New - TextBoxBase: text selection does
not work when TextAlign is not HorizontalAlignment.Left
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon May 15 06:00:06 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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78402
--- shadow/78402 2006-05-15 06:00:06.000000000 -0400
+++ shadow/78402.tmp.10391 2006-05-15 06:00:06.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 78402
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: atsushi at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: TextBoxBase: text selection does not work when TextAlign is not HorizontalAlignment.Left
+
+TextBoxBase seems to have incorrect mouse selection start position. As a
+result, text selection by mouse does not work when it is not left-aligned.
+
+Pretty straightforward example:
+
+using System;
+using System.Windows.Forms;
+
+public class Test : Form
+{
+ public static void Main ()
+ {
+ Application.Run (new Test ());
+ }
+
+ public Test ()
+ {
+ TextBox tb = new TextBox ();
+ tb.Text = "sample";
+ tb.TextAlign = HorizontalAlignment.Right;
+ Controls.Add (tb);
+ }
+}
+
+Steps to reproduce the problem:
+1. compile and run it.
+2. move to the text box and deselect text.
+3. try to select some.
More information about the mono-bugs
mailing list