[Mono-bugs] [Bug 77745][Maj] New - Forms with menus calculate client size incorrectly.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Mar 9 11:05:16 EST 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 don at edvalson.net.

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

--- shadow/77745	2006-03-09 11:05:16.000000000 -0500
+++ shadow/77745.tmp.32726	2006-03-09 11:05:16.000000000 -0500
@@ -0,0 +1,28 @@
+Bug#: 77745
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Windows XP SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: don at edvalson.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Forms with menus calculate client size incorrectly.
+
+Attached is a form with a background image. The background image is 
+exactly 400x400 pixels, and is black with a one pixel red line on each 
+side of it, so the inner black square is 398x398 pixels.
+
+In the Load callback for the form, the Client area is set to 400 x 400. 
+This should result in a black background with 1 pixel of red available 
+all around it. It works fine if there is no menu, but with a menu, the 
+bottom red border is in the wrong place.
+
+See attached test program.


More information about the mono-bugs mailing list