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 [EMAIL PROTECTED]

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

--- shadow/82765        2007-09-11 18:06:15.000000000 -0400
+++ shadow/82765.tmp.10799      2007-09-14 15:49:28.000000000 -0400
@@ -10,13 +10,12 @@
 Component: Windows.Forms
 AssignedTo: [EMAIL PROTECTED]                            
 ReportedBy: [EMAIL PROTECTED]               
 QAContact: [EMAIL PROTECTED]
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: Form: Opacity property always returns 1 on Win32
 
 Repro is ./ch02_Forms/OpacitySample 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/
@@ -48,6 +47,56 @@
 See my standalone repro.
 
 ------- Additional Comments From [EMAIL PROTECTED]  2007-09-10 17:51 -------
 Created an attachment (id=20013)
 Repro
 
+
+------- Additional Comments From [EMAIL PROTECTED]  2007-09-14 15:49 -------
+The form is resized by the scaling code, which may need some fixes.
+The following code runs properly on SWF but fails on MWF on Windows:
+using System;
+using System.Diagnostics;
+using System.Drawing;
+using System.Windows.Forms;
+
+class Test
+{
+       static void Main ()
+       {
+               Application.Run (new TestForm ());
+       }
+}
+
+class TestForm : Form
+{
+       public TestForm ()
+       {
+               Font = new Font (FontFamily.GenericSansSerif, 100);
+               Debug.Assert (Size == new Form ().Size);
+       }
+       public override Size AutoScaleBaseSize
+       {
+               get
+               {
+                       Debug.Fail (null);
+                       return Size.Empty;
+               }
+               set
+               {
+                       Debug.Fail (null);
+               }
+       }
+       protected override bool ScaleChildren
+       {
+               get
+               {
+                       Debug.Fail (null);
+                       return false;
+               }
+       }
+       protected override void ScaleControl (SizeF factor, 
+BoundsSpecified specified)
+       {
+               Debug.Fail (null);
+       }
+}
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to