[Mono-bugs] [Bug 80601][Cos] New - StatusBar displays too much text

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 24 10:14:59 EST 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 georgegiolfan at yahoo.com.

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

--- shadow/80601	2007-01-24 10:14:59.000000000 -0500
+++ shadow/80601.tmp.19694	2007-01-24 10:14:59.000000000 -0500
@@ -0,0 +1,56 @@
+Bug#: 80601
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: StatusBar displays too much text
+
+Description of Problem:
+The documentation for StatusBar.Text states:
+The StatusBar control displays only the first 127 characters of a string.
+
+Steps to reproduce the problem:
+Compile and run the following program.
+using System.Text;
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    public TestForm() {
+        StringBuilder b = new StringBuilder();
+        b.Append(' ');
+        for (int i = 0; i < 8; i++)
+            b.Append(b);
+        b[127] = 'a';
+        StatusBar s = new StatusBar();
+        s.SizingGrip = false;
+        s.Text = b.ToString();
+        Controls.Add(s);
+        Width = (int)s.CreateGraphics().MeasureString(s.Text, 
+s.Font).Width + 100;
+    }
+}
+
+Actual Results:
+"a" is visible.
+
+Expected Results:
+"a" is not visible.
+
+How often does this happen? 
+Always (on the SVN version).
+
+Additional Information:
+I can't imagine someone relying on this limitation.


More information about the mono-bugs mailing list