[Mono-bugs] [Bug 78403][Nor] Changed - TextBox.set_TextAlign does
not update the align
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon May 15 07:41:22 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:41.000000000 -0400
+++ shadow/78403.tmp.12222 2006-05-15 07:41:22.000000000 -0400
@@ -1,23 +1,23 @@
Bug#: 78403
Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
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
+Summary: TextBox.set_TextAlign does not update the align
as summarized ;-)
sample repro:
using System;
@@ -54,6 +54,38 @@
Patch being attached.
------- Additional Comments From atsushi at ximian.com 2006-05-15 07:07 -------
Created an attachment (id=17020)
proposed fix
+
+------- Additional Comments From atsushi at ximian.com 2006-05-15 07:41 -------
+Hmm... it still did not update the alignment when it tries to move left.
+
+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);
+ Button b = new Button ();
+ b.Top = 20;
+ b.Text = "to right";
+ b.Click += delegate (object o, EventArgs e) {
+ Console.WriteLine (tb.TextAlign);
+ tb.TextAlign = HorizontalAlignment.Left;
+ };
+ Controls.Add (b);
+ }
+}
+
+Another patch being attached for this specific problem.
More information about the mono-bugs
mailing list