[Mono-bugs] [Bug 78403][Nor] New - [PATCH] TextBox.set_TextAlign
does not update the align
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon May 15 07:07:01 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=78403
--- shadow/78403 2006-05-15 07:07:01.000000000 -0400
+++ shadow/78403.tmp.11723 2006-05-15 07:07:01.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 78403
+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: [PATCH] TextBox.set_TextAlign does not update the align
+
+as summarized ;-)
+
+sample repro:
+
+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.Center;
+ Controls.Add (tb);
+ Button b = new Button ();
+ b.Top = 20;
+ b.Text = "to right";
+ b.Click += delegate (object o, EventArgs e) {
+ tb.TextAlign = HorizontalAlignment.Right;
+ };
+ Controls.Add (b);
+ }
+}
+
+
+Steps to reproduce the problem:
+1. compile and run.
+2. click the button "to right" and check if the textbox text moves to right.
+
+Patch being attached.
More information about the mono-bugs
mailing list