[Mono-winforms-list] GroupBoxRenderer fix

George Giolfan georgegiolfan at yahoo.com
Mon May 19 12:42:23 EDT 2008


Use the following program to reproduce the bug (notice
the border under the text). I think this is cause by
the fact that GDI+ clipping does not affect GDI
clipping.

using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
class TestForm : Form
{
	static void Main ()
	{
		Application.EnableVisualStyles ();
		Application.Run (new TestForm ());
	}
	protected override void OnPaint (PaintEventArgs e)
	{
		GroupBoxRenderer.DrawGroupBox (e.Graphics,
ClientRectangle, "Text", Font, GroupBoxState.Normal);
	}
}


      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GroupBoxRenderer fix.patch
Type: application/octet-stream
Size: 3217 bytes
Desc: 3129065679-GroupBoxRenderer fix.patch
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20080519/c58b237b/attachment.obj 


More information about the Mono-winforms-list mailing list