Your testcase shows that we're not handling borders yet :-) Therefore, our 
ClientRectangle stays the same size as the bounds for child windows. I've 
tested toplevel windows where we do seem to match MS. Once borders are 
implemented our client area size will shrink accordingly.

Cheers,
  Peter

-----Original Message-----
From: "Kazuki Oikawa" <[EMAIL PROTECTED]>
To: "Peter Dennis Bartok" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Date: 21 September, 2005 21:04
Subject: Re: [Mono-winforms-list] [PATCH] AsyncMethodResult patch and 
Question


>A reason that I think ClientRectangle contains border is result of
>attached testcase.
>
>Result:
>Linux
>   Label.Bounds: {X=0,Y=0,Width=100,Height=23}
>   Label.ClientRect: {X=0,Y=0,Width=100,Height=23}
>   Panel.Bounds: {X=0,Y=0,Width=200,Height=100}
>   Panel.ClientRect: {X=0,Y=0,Width=200,Height=100}
>
>Windows (mono)
>   Label.Bounds: {X=0,Y=0,Width=100,Height=23}
>   Label.ClientRect: {X=0,Y=0,Width=100,Height=23}
>   Panel.Bounds: {X=0,Y=0,Width=200,Height=100}
>   Panel.ClientRect: {X=0,Y=0,Width=200,Height=100}
>
>Windows (MS)
>   Label.Bounds: {X=0,Y=0,Width=100,Height=23}
>   Label.ClientRect: {X=0,Y=0,Width=98,Height=21}
>   Panel.Bounds: {X=0,Y=0,Width=200,Height=100}
>   Panel.ClientRect: {X=0,Y=0,Width=198,Height=98}
>
>I think this difference have influence on Bug#76044.
>
>--
>Kazuki
> 

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

Reply via email to