[Mono-bugs] [Bug 80628][Min] Changed - TextBox has wrong ClientRectangle.Height after setting BorderStyle to FixedSingle

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Mar 8 13:59:30 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 monkey at jpobst.com.


--- shadow/80628	2007-02-07 14:47:55.000000000 -0500
+++ shadow/80628.tmp.29675	2007-03-08 13:59:30.000000000 -0500
@@ -31,6 +31,16 @@
     protected override void OnClick(EventArgs e) {
         t.BorderStyle = BorderStyle.FixedSingle;
         Debug.Assert(t.ClientRectangle.Height == 20);
+------- Additional Comments From monkey at jpobst.com  2007-03-08 13:59 -------
+Examining the WindowStyles set for TextBox, the Fixed3D border is
+handled with WindowStyles and the border is considered NONCLIENT. 
+When the FixedSingle border is used no border WindowStyle is set, the
+full Bounds is considered Client area, and the TextBox draws the
+border itself.
+When FixedSingle is chosen, we need to set Control.InternalBorderStyle
+= None, and paint the border somewhere in TextBox.  (OnPaint[Background]).

More information about the mono-bugs mailing list