Felipe Monteiro de Carvalho schrieb:
On Fri, Oct 7, 2011 at 6:34 AM, Hans-Peter Diettrich
<drdiettri...@aol.com> wrote:
The ambiguous use of TRect, with either BottomRight or WidthHeight in the
second TPoint, often leads to misunderstandings and flawed code (as above).
It were helpful when type alias would be introduced and used, or when the
argument names would indicate the current content of an TRect.

Where exactly is TRect used to hold the Width and Height? File and Line.

TControl.GetClientRect
(controls.inc 1525..)

BoundsRect and ClientRect contain different information, despite the similar name and type.

A similar problem exists with mouse coordinates, which can be either screen or client coords.

DoDi


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to