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=80167 --- shadow/80167 2006-12-06 10:02:27.000000000 -0500 +++ shadow/80167.tmp.4503 2006-12-06 10:02:27.000000000 -0500 @@ -0,0 +1,53 @@ +Bug#: 80167 +Product: Mono: Class Libraries +Version: 1.2 +OS: Windows XP +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Button displays image even if FlatStyle is set to System + +Description of Problem: +Button displays Image even if FlatStyle is set to System. + +Steps to reproduce the problem: +Compile and run the following program. +using System.Windows.Forms; +class TestForm : Form { + static void Main() { + Application.Run(new TestForm()); + } + public TestForm() { + Button Button = new Button(); + Button.FlatStyle = FlatStyle.System; + Button.Image = Icon.ToBitmap(); + Controls.Add(Button); + } +} + +Actual Results: +A button with an image. + +Expected Results: +No image displayed on the button. + +How often does this happen? +Always. + +Additional Information: +I believe that on Microsoft .NET Framework (v. 1.1) this limitation is due +to the fact that the controls with FlatStyle set to FlatStyle.System are +not drawn by the usual Common Controls library, but by a special, themed +version (Windows XP, v. 6.0). See also Application.EnableVisualStyles in +the .NET Framework 2.0 documentation. Anyway, FlatStyle.System should not +be used, so this should not reduce functionality for new applications, +however older applications may rely on this behaviour. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
