[Mono-bugs] [Bug 78711][Nor] New - Flat Toolbar should not (?) respect ButtonSize
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Jun 25 22:59:10 EDT 2006
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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78711
--- shadow/78711 2006-06-25 22:59:10.000000000 -0400
+++ shadow/78711.tmp.24622 2006-06-25 22:59:10.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 78711
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: atsushi at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Flat Toolbar should not (?) respect ButtonSize
+
+Seems like MS.NET Flat ToolBar buttons does not respect ButtonSize and
+always draw assigned buttons. In the example below, or
+winforms/wordpad/wordpad.exe, MS.NET draws full "New", "Open" and "Save",
+while we draw only within 16pt (most likely, "N", "O" and "S").
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace WordPad {
+ public class WordPad : Form
+ {
+ public WordPad ()
+ {
+ ToolBar buttons;
+ buttons = new ToolBar();
+ buttons.Appearance = ToolBarAppearance.Flat;
+ buttons.ButtonSize = new Size(16, 16);
+ buttons.Buttons.Add("New");
+ buttons.Buttons.Add("Open");
+ buttons.Buttons.Add("Save");
+ Controls.Add (buttons);
+ }
+
+ public static void Main(string[] args) {
+ Application.Run(new WordPad ());
+ }
+ }
+}
More information about the mono-bugs
mailing list