[Mono-winforms-list] GroupBoxRenderer fix
Jonathan Pobst
monkey at jpobst.com
Mon May 19 15:12:09 EDT 2008
The last argument to UXTheme.DrawThemeBackground is a clip rectangle.
Will that work instead of Win32ExcludeClipRect/Win32ExtSelectClipRgn?
Other than that, looks fine.
Jonathan
George Giolfan wrote:
> 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);
> }
> }
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
More information about the Mono-winforms-list
mailing list