[Lazarus] Screen and Desktop inconsistencies

Paul Ishenin ip at kmiac.ru
Tue Nov 8 09:45:43 CET 2011


08.11.2011 16:28, Hans-Peter Diettrich wrote:

>> You understood the code wrong: Bounds() and Rect() are different
>> functions.
>
> I cannot see "Bounds" here?

There was Bounds(Left, Top, Width, Height)

>> Look at it after r33405.
>
> Thanks for the fix :-)

The fix do the same as before using a bit another code.

> D7 OH on TScreen.DesktopRect states that the origin of the primary
> monitor is (0,0), that's why (Screen) Top, Right and Rect could be
> omitted. But I'm not sure whether that assumption holds for non-Windows
> displays.

It states this only for *single*-monitor systems. 
http://docwiki.embarcadero.com/VCL/en/Forms.TScreen.DesktopLeft

>> If you need monitor area you can obtain it using PrimaryMonitor or
>> Monitors[] property.
>
> Right, but I wanted to know how all that should be documented.

You don't need to write anything about Screen left,top if Screen has 
width and height.

Best regards,
Paul Ishenin.





More information about the Lazarus mailing list