[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-winforms-list
Subject:    Re: [Mono-winforms-list] GroupBoxRenderer fix
From:       Jonathan Pobst <monkey () jpobst ! com>
Date:       2008-05-19 19:42:50
Message-ID: 4831D83A.2020509 () jpobst ! com
[Download RAW message or body]

Yep, you are right.  I was thinking pClipRect was telling it where not 
to draw instead of where to draw.

Your original patch is fine, please commit!

Jon


George Giolfan wrote:
>> The last argument to UXTheme.DrawThemeBackground is
>> a clip rectangle. 
>> Will that work instead of
>> Win32ExcludeClipRect/Win32ExtSelectClipRgn?
> 
> If you mean calling DrawThemeBackground one time, I
> don't think so. The pClipRect of the
> DrawThemeBackground is the rectangle in which we need
> to paint. The rectangle I am excluding using GDI calls
> is the rectangle in which we should not paint because
> the text will go there.
> One way it could work would be to call
> VisualStyleRenderer.DrawBackground 8 times (for each
> corner and side of the text area). While this would
> not require platform specific calls, it does not seem
> the proper way to do it.
> Please let me know how you prefer it. I think it is
> easier to use native clipping on each platform.
> 
> 
>       
> 
> 

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic