<!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 11:52 geschrieben:
<br/>
<br/>
> Felipe Monteiro de Carvalho schrieb:
<br/>
> > On Fri, Oct 7, 2011 at 6:34 AM, Hans-Peter Diettrich
<br/>
> > <DrDiettrich1@aol.com> wrote:
<br/>
> >> The ambiguous use of TRect, with either BottomRight or WidthHeight in the
<br/>
> >> second TPoint, often leads to misunderstandings and flawed code (as above).
<br/>
> >> It were helpful when type alias would be introduced and used, or when the
<br/>
> >> argument names would indicate the current content of an TRect.
<br/>
> >
<br/>
> > Where exactly is TRect used to hold the Width and Height? File and Line.
<br/>
>
<br/>
> TControl.GetClientRect
<br/>
> (controls.inc 1525..)
<br/>
>
<br/>
> BoundsRect and ClientRect contain different information, despite the
<br/>
> similar name and type.
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">They both return a Left,Top,Right,Bottom.</p>
<p style="margin: 0px;">ClientRect Left,Top is 0,0, so Right=ClientWidth and Bottom=ClientHeight. </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
<br/>
> A similar problem exists with mouse coordinates, which can be either
<br/>
> screen or client coords.
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p>Mattias </p>
</body>
</html>