[Mono-bugs] [Bug 78659][Min] New - [PATCH] TextBoxBase: when RightToLeft is Yes, vertical scrollbar should go left

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jun 16 02:58:25 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=78659

--- shadow/78659	2006-06-16 02:58:25.000000000 -0400
+++ shadow/78659.tmp.23793	2006-06-16 02:58:25.000000000 -0400
@@ -0,0 +1,73 @@
+Bug#: 78659
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] TextBoxBase: when RightToLeft is Yes, vertical scrollbar should go left
+
+Run example below on both .NET and Mono:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+public class Test : Form
+{
+        public static void Main ()
+        {
+                Application.Run (new Test ());
+        }
+
+        public Test ()
+        {
+                TextBox tb = new TextBox ();
+                tb.ScrollBars = ScrollBars.Both;
+                tb.Multiline = true;
+                tb.Size = new Size (100, 100);
+                tb.Text = "sample";
+                tb.TextAlign = HorizontalAlignment.Right;
+                tb.RightToLeft = RightToLeft.Yes;
+                Controls.Add (tb);
+
+                Button b = new Button ();
+                b.Text = "RightToLeft";
+                b.Location = new Point (150, 0);
+                b.Click += delegate (object o, EventArgs e) {
+                        tb.RightToLeft =
+                                tb.RightToLeft == RightToLeft.Yes ?
+                                RightToLeft.No : RightToLeft.Yes;
+                        Console.WriteLine (tb.TextAlign); // no changes
+                };
+                Controls.Add (b);
+
+                Button b2 = new Button ();
+                b2.Text = "TextAlign";
+                b2.Location = new Point (150, 150);
+                b2.Click += delegate (object o, EventArgs e) {
+                        tb.TextAlign =
+                                tb.TextAlign == HorizontalAlignment.Right ?
+                                HorizontalAlignment.Left : 
+                                HorizontalAlignment.Right;
+                        Console.WriteLine (tb.TextAlign);
+                };
+                Controls.Add (b2);
+        }
+}
+
+on .NET, vertical ScrollBar goes left side. On Mono, nothing changes.
+
+A fix being attached.
+
+Note that TextAlign is not relevant, regardless of bug #78402 (the
+"TextAlign" button won't work anyways though).


More information about the mono-bugs mailing list