[Mono-bugs] [Bug 82765][Min] Changed - Form: Opacity property always returns 1 on Win32
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Sep 14 15:49:28 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 georgegiolfan at yahoo.com.
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: everaldo at simios.org
ReportedBy: andyhume32 at yahoo.co.uk
QAContact: mono-bugs at ximian.com
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 gert.driesen at pandora.be 2007-09-10 17:51 -------
Created an attachment (id=20013)
Repro
+
+------- Additional Comments From georgegiolfan at yahoo.com 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);
+ }
+}
More information about the mono-bugs
mailing list