<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head>
<body>
<p style="margin: 0;">
<span>
<span></span>
</span>
</p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
<br/>
Hans-Peter Diettrich <DrDiettrich1@aol.com> hat am 7. Oktober 2011 um 13:18 geschrieben:
<br/>
<br/>
> Mattias Gaertner schrieb:
<br/>
>
<br/>
> > > > Where exactly is TRect used to hold the Width and Height? File and
<br/>
> > Line.
<br/>
> > >
<br/>
> > > TControl.GetClientRect
<br/>
> > > (controls.inc 1525..)
<br/>
> > >
<br/>
> > > BoundsRect and ClientRect contain different information, despite the
<br/>
> > > similar name and type.
<br/>
> >
<br/>
> >
<br/>
> >
<br/>
> > They both return a Left,Top,Right,Bottom.
<br/>
> >
<br/>
> > ClientRect Left,Top is 0,0, so Right=ClientWidth and Bottom=ClientHeight.
<br/>
>
<br/>
> Is this really consistent with a scrolled client area, inner borders,
<br/>
> swapped scrollbars in BiDi mode etc.?
</div>
<p style="margin: 0px;"> </p>
<p>I'm not sure what you mean with "inner borders". </p>
<p>The ClientRect excludes scrollbars and is relative to the left, top of the visible client area (so Left,Top are almost always 0,0). So for almost all uses it is simply the size of the visible area, where a control can paint and gets mouse events. </p>
<p> </p>
<div style="margin: 5px 0px 5px 0px;">
<br/>
> But I agree that client areas *could* be described by TopLeft and
<br/>
> BottomRight points, when the implementation is consistent.
<br/>
> AFAIR there exist (derived) controls with a client origin <> (0,0)...
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">That is possible, but I don't know any. </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Mattias</p>
<p style="margin: 0px;"> </p>
</body>
</html>