[Mono-bugs] [Bug 82605][Wis] Changed - Label cant be align to midlle center

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 27 17:40:38 EDT 2007


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 monkey at jpobst.com.

http://bugzilla.ximian.com/show_bug.cgi?id=82605

--- shadow/82605	2007-08-27 14:31:33.000000000 -0400
+++ shadow/82605.tmp.28606	2007-08-27 17:40:38.000000000 -0400
@@ -1,22 +1,21 @@
 Bug#: 82605
 Product: Mono: Class Libraries
 Version: 1.2
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: Windows.Forms
 AssignedTo: toshok at ximian.com                            
 ReportedBy: surfzoid2002 at yahoo.fr               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: Label cant be align to midlle center
 
 this.Label1.TextAlign  = System.Drawing.ContentAlignment.MiddleCenter;
 Doesn't work.
 
 mono [eric at surfzoidPC ~]$ mono -V
@@ -26,6 +25,34 @@
         GC:            Included Boehm (with typed GC)
         SIGSEGV:       altstack
         Notifications: epoll
         Architecture:  x86
         Disabled:      none
 [eric at surfzoidPC ~]$
+
+------- Additional Comments From monkey at jpobst.com  2007-08-27 17:40 -------
+The following seems to work as expected, can you provide more details
+or a test case that shows the issue?
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+	[STAThread]
+	static void Main ()
+	{
+		Application.Run (new MainForm ());
+	}
+
+	public MainForm ()
+	{
+		Label l = new Label ();
+		l.Text = "MiddleCenter";
+		l.Size = new Size (200, 100);
+		l.BorderStyle = BorderStyle.FixedSingle;
+		l.TextAlign = ContentAlignment.MiddleCenter;
+		Controls.Add (l);
+	}
+}
+


More information about the mono-bugs mailing list