[Mono-bugs] [Bug 80949][Nor] New - TextRenderer.DrawText ignores TextFormatFlags.PreserveGraphicsClipping

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 23 14:29:38 EST 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 georgegiolfan at yahoo.com.

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

--- shadow/80949	2007-02-23 14:29:38.000000000 -0500
+++ shadow/80949.tmp.16581	2007-02-23 14:29:38.000000000 -0500
@@ -0,0 +1,34 @@
+Bug#: 80949
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextRenderer.DrawText ignores TextFormatFlags.PreserveGraphicsClipping
+
+Steps to reproduce the problem:
+Compile and run the following program.
+using System.Drawing;
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    protected override void OnPaint(PaintEventArgs pevent) {
+        base.OnPaint(pevent);
+        pevent.Graphics.SetClip(Rectangle.Empty);
+        TextRenderer.DrawText(pevent.Graphics, "This should not be 
+visible.", Font, Point.Empty, ForeColor, BackColor, 
+TextFormatFlags.PreserveGraphicsClipping);
+    }
+}


More information about the mono-bugs mailing list