Fabio Dell'Aria ha scritto:
How I can obtain the Form (screen related) coordinates?
In Delphi I use Left/Top and (Left + Width)/(Top + Height),
but in Lazarus Width=ClientWidth and Height=ClientHeight
so I cannot use the same method.
this is a common FUQ for Lazarus (Frequently Unanswered Question)...
I suppose that you have this problem under windows, try something like
this:
var r: TRect;
....
{$IFDEF WIN32}
// let's use the win32 APIs
getwindowrect(Form1.handle,r);
top:= (screen.height-(r.bottom-r.top));
left:=(screen.width-(r.right-r.left));
{$ENDIF}
{$IFDEF LINUX}
top:= (screen.height-height);
left:=(screen.width-width);
{$ENDIF}
not sure if this issue has been resolved in recent releases of Lazarus...
tiziano
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives