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);
        }
}


      

Attachment: GroupBoxRenderer fix.patch
Description: 3129065679-GroupBoxRenderer fix.patch

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to