[Mono-bugs] [Bug 82569][Wis] New - [Win32] Oppacity problem under Windows

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 24 08:34:00 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 everaldo at simios.org.

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

--- shadow/82569	2007-08-24 08:34:00.000000000 -0400
+++ shadow/82569.tmp.17277	2007-08-24 08:34:00.000000000 -0400
@@ -0,0 +1,70 @@
+Bug#: 82569
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: everaldo at simios.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [Win32] Oppacity problem under Windows
+
+On Mono/Windows, the form is first fully displayed (in Load, Opacity 
+is 1), then hidden again and then is gradually displayed (as it 
+should).
+
+Run this code:
+
+using System;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+	public MainForm ()
+	{
+		// 
+		// _timer
+		// 
+		_timer = new Timer ();
+		_timer.Enabled = true;
+		_timer.Interval = 25;
+		_timer.Tick += new EventHandler (Timer_Tick);
+		// 
+		// MainForm
+		// 
+		Load += new EventHandler (MainForm_Load);
+		Opacity = 0;
+	}
+
+	[STAThread]
+	static void Main ()
+	{
+		Application.Run (new MainForm ());
+	}
+
+	void MainForm_Load (object sender, EventArgs e)
+	{
+		lock (this) {
+			if (Opacity != 0)
+				Environment.Exit (1);
+		}
+	}
+
+	void Timer_Tick (object sender, EventArgs e)
+	{
+		lock (this) {
+			Opacity += 0.03;
+			if (Opacity == 1)
+				Environment.Exit (0);
+		}
+	}
+
+	private Timer _timer;
+}


More information about the mono-bugs mailing list