[Mono-bugs] [Bug 80758][Wis] Changed - [WIN] DrawIcon does not work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 8 09:39:24 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 sebastien at ximian.com.

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

--- shadow/80758	2007-02-08 04:45:46.000000000 -0500
+++ shadow/80758.tmp.12528	2007-02-08 09:39:24.000000000 -0500
@@ -3,21 +3,21 @@
 Version: 1.2
 OS: Windows XP
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
-Priority: Major
+Priority: Wishlist
 Component: Sys.Drawing.
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: bugzilla at woy.nl               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: DrawIcon does not work
+Summary: [WIN] DrawIcon does not work
 
 Please fill in this template when reporting a bug, unless you know what 
 you are doing.
 Description of Problem:
 Graphics.DrawIcon does not work. An ArgumentException is thrown in 
 GDIPlus.CheckStatus(Status status) when i call the following line in an 
@@ -25,6 +25,39 @@
 
 e.Graphics.DrawIcon( SystemIcons.Error, 0, 0 );
 
 ------- Additional Comments From bugzilla at woy.nl  2007-02-08 04:45 -------
 This is in version 1.2.3 from 7-2-2007 ( I noticed in the release 
 notes there were some improvements in SystemIcons )
+
+------- Additional Comments From sebastien at ximian.com  2007-02-08 09:39 -------
+It works here under Linux. It may be a win32-only problem.
+
+Full sample:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace centered {
+
+	public class MainForm : Form {
+
+		public MainForm ()
+		{
+			Paint += new PaintEventHandler (MainForm_Paint);
+		}
+
+		void MainForm_Paint (object sender, PaintEventArgs e)
+		{
+			e.Graphics.FillRectangle (Brushes.AliceBlue, 0, 0, 100, 100);
+			e.Graphics.DrawIcon (SystemIcons.Error, 0, 0);
+		}
+
+		[STAThread]
+		static void Main ()
+		{
+			Application.Run (new MainForm ());
+		}
+	}
+}
+


More information about the mono-bugs mailing list