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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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 ()); + } + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
