[Mono-bugs] [Bug 82608][Nor] New - Garbage appears on double-buffered opaque UserControl after resizing
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Aug 27 20:20:39 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 roman.s at sbcglobal.net.
http://bugzilla.ximian.com/show_bug.cgi?id=82608
--- shadow/82608 2007-08-27 20:20:39.000000000 -0400
+++ shadow/82608.tmp.30569 2007-08-27 20:20:39.000000000 -0400
@@ -0,0 +1,74 @@
+Bug#: 82608
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details: Ubuntu 7.04
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: roman.s at sbcglobal.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Garbage appears on double-buffered opaque UserControl after resizing
+
+Hi,
+
+Steps to reproduce:
+
+1. In Visual Studio 2005 create a new WinForm application. Create also a
+custom UserControl, set its DockStyle to Fill and add it to the Form.
+
+2. In the constructor of the custom UserControl add the flags to enable the
+double-buffering:
+
+namespace TestUserControl
+
+{
+
+ public partial class CustomUserControl : UserControl
+
+ {
+
+ public CustomUserControl()
+
+ {
+
+ InitializeComponent();
+
+
+
+ SetStyle(ControlStyles.DoubleBuffer, true);
+
+ SetStyle(ControlStyles.AllPaintingInWmPaint, true);
+
+ SetStyle(ControlStyles.UserPaint, true);
+
+
+
+ SetStyle(ControlStyles.Opaque, true);
+
+ }
+
+
+ }
+
+}
+
+3. Run the application. Resize the form:
+
+ - Microsoft .NET: you should see the form filled with black color.
+Whether you make your form bigger or smaller it is still black. This is the
+correct behavior.
+
+ - Mono/Windows: the same. Correct behavior.
+
+ - Mono/Linux: sometimes you may see garbage right after startup. But
+this does not happen too often. But the following happens always: resize
+the form to make it smaller, then resize it back and you will see the garbage.
+
+Regards, Roman.
More information about the mono-bugs
mailing list