[Mono-bugs] [Bug 81182][Min] New - MenuItem.OwnerDraw is ignored
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Mar 19 08:29:32 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=81182
--- shadow/81182 2007-03-19 07:29:32.000000000 -0500
+++ shadow/81182.tmp.26147 2007-03-19 07:29:32.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 81182
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MenuItem.OwnerDraw is ignored
+
+Steps to reproduce the problem:
+using System.Diagnostics;
+using System.Windows.Forms;
+class TestForm : Form {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+ public TestForm() {
+ Menu = new MainMenu();
+ Menu.MenuItems.Add(new MyMenuItem());
+ }
+ class MyMenuItem : MenuItem {
+ public MyMenuItem() {
+ Debug.Assert(!OwnerDraw);
+ }
+ protected override void OnMeasureItem(MeasureItemEventArgs
+e) {
+ Debug.Fail(null);
+ }
+ protected override void OnDrawItem(DrawItemEventArgs e) {
+ Debug.Fail(null);
+ }
+ }
+}
More information about the mono-bugs
mailing list