[Mono-bugs] [Bug 82787][Maj] New - TextBox: much truncation, width measuring wrong?

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 10 16:17:55 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 andyhume32 at yahoo.co.uk.

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

--- shadow/82787	2007-09-10 16:17:55.000000000 -0400
+++ shadow/82787.tmp.6251	2007-09-10 16:17:55.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 82787
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: andyhume32 at yahoo.co.uk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextBox: much truncation, width measuring wrong?
+
+Repro is ./ch02_Forms/VisualInheritanceSample from the sample code for 
+the book "Windows Forms 2.0 Programming," by Chris Sells and Michael 
+Weinhardt, sources available from 
+http://www.sellsbrothers.com/writing/wfbook/
+
+Tested and found on SVN head Win32, 1.2.5_5 Win32, 1.2.4 Win32.  
+Behaviour is apparently good on 1.2.3 Win32.  Behaviour is good on 
+1.2.5_5 Suse VM.
+
+I'm hoping that this is some artifact of my machine, I presume someone 
+else would have seen it previously.  I guess it's only on Win32 so not on 
+the core platform...
+
+The text is "The quick brown fox, blah, blah, blah..."
+
+Run the sample and leave the text selected (ie blue background).  See the 
+following:
+1. The text is truncated on startup -- but textbox is dock filled!  I see 
+the truncation at "...blah, blah, bl".  See screenshot.
+2. Widen/Maximize window -- no change.
+3. Narrow the window to cause the text to wrap -- so the edge is just 
+after the second 'blah'.  See the end of the text (ending "blah..."), but 
+is still truncated at end of the first line.
+4. Take focus away (to another window not covering the window).  See blue 
+background disappear.  See all the text appear.
+5. Bring focus back, see again blue selection and truncation on first 
+line again.
+
+Restart app.
+1. Click right-arrow or END key to move cursor to the end of the line and 
+drop "selection".  Still see it truncated.
+2. Widen or even narrow slightly the window -- all text appears.
+3. Note that cursor is at the wrong position: enter some text 
+e.g. "aaaa", note that it is added at the 'real' end!  The cursor is 
+obviously drawn at the wrong position.
+4. Use the arrow keys to select to the beginning of the text.  See both 
+black and white text being drawn and merged. Yuk.  See screenshot.


More information about the mono-bugs mailing list