[Mono-bugs] [Bug 72762][Wis] New - The button control renders improperly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 19 Feb 2005 18:31:10 -0500 (EST)


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 ajfrantz@umich.edu.

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

--- shadow/72762	2005-02-19 18:31:10.000000000 -0500
+++ shadow/72762.tmp.12145	2005-02-19 18:31:10.000000000 -0500
@@ -0,0 +1,104 @@
+Bug#: 72762
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: AMD64 kernel 2.6.9 (Gentoo r6)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ajfrantz@umich.edu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The button control renders improperly
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Using SVN from Feb. 19 ~2AM EST the button control fails to render properly
+with several different basic sources on AMD64.
+
+Steps to reproduce the problem:
+1. Build cairo from its cvs, libgdiplus/mono from svn source.
+2. Compile a basic program (sample code below) to test a button control.
+3. Run compiled program.
+
+Actual Results:
+
+The button renders improperly.  See
+http://eckzow.is-a-geek.com/renderglitch.png for an example.
+
+Expected Results:
+
+A properly rendered button.
+
+How often does this happen? 
+
+Always.
+
+Additional Information:
+
+The same binary runs properly when transferred to an MS Windows system and
+run there using the .NET libraries.
+
+The test code used was derived from a basic sample found online:
+
+// Simple test of MWF code
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+// custom delegate
+public delegate void StartDelegate();
+
+class EventDemo : Form
+{
+    // custom event
+    public event StartDelegate StartEvent;
+
+    public EventDemo()
+    {
+        Button clickMe = new Button();
+
+        clickMe.Parent = this;
+        clickMe.Text = "Click Me";
+        clickMe.Location = new Point(
+            (ClientSize.Width - clickMe.Width) /2,
+            (ClientSize.Height - clickMe.Height)/2);
+
+        // an EventHandler delegate is assigned
+        // to the button's Click event
+        clickMe.Click += new EventHandler(OnClickMeClicked);
+
+        // our custom "StartDelegate" delegate is assigned
+        // to our custom "StartEvent" event.
+        StartEvent += new StartDelegate(OnStartEvent);
+
+        // fire our custom event
+        StartEvent();
+    }
+
+    // this method is called when the "clickMe" button is pressed
+    public void OnClickMeClicked(object sender, EventArgs ea)
+    {
+        //MessageBox.Show("You Clicked My Button!");
+	Console.WriteLine("Button event fired.");
+    }
+
+    // this method is called when the "StartEvent" Event is fired
+    public void OnStartEvent()
+    {
+        //MessageBox.Show("I Just Started!");
+	Console.WriteLine("Start event fired.");
+    }
+
+    static void Main(string[] args)
+    {
+        Application.Run(new EventDemo());
+    }
+}