Mattias Gaertner schrieb:

> > 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.

They both return a Left,Top,Right,Bottom.

ClientRect Left,Top is 0,0, so Right=ClientWidth and Bottom=ClientHeight.

Is this really consistent with a scrolled client area, inner borders, swapped scrollbars in BiDi mode etc.?

But I agree that client areas *could* be described by TopLeft and BottomRight points, when the implementation is consistent.
AFAIR there exist (derived) controls with a client origin <> (0,0)...

DoDi


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to