[Mono-bugs] [Bug 78162][Nor] Changed - Setting a region with Control.Region has no effect

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Apr 25 09:15:00 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 sebastien at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78162

--- shadow/78162	2006-04-22 11:55:50.000000000 -0400
+++ shadow/78162.tmp.5236	2006-04-25 09:15:00.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 78162
 Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
 AssignedTo: peter at novonyx.com                            
 ReportedBy: xenomorph2 at onlinehome.de               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -30,6 +30,21 @@
 
 
 ------- Additional Comments From xenomorph2 at onlinehome.de  2006-04-22 11:55 -------
 Created an attachment (id=16812)
 Sample app.
 
+
+------- Additional Comments From sebastien at ximian.com  2006-04-25 09:14 -------
+The current code for the Control.Region property has been written when
+only rectangular regions were supported. So the code takes some
+liberty to assume the clipping will be rectangular, which is causing
+some problems for the background.
+
+This needs to be changed to keep the assigned region (or probably a
+clone of the region) and be used (clipping) during the control's
+rendering. 
+
+The attached (partial) patch isn't quite right as the background isn't
+updated correctly (must be done before the clipping is set). Note that
+some of the current clipping (that assume a rectangular region) could
+possibly be removed.


More information about the mono-bugs mailing list