Will ClientOrigin give you what you require ?

Indicates the screen coordinates (in pixels) of the top left corner of the
client area of the control.

property ClientOrigin: TPoint;

Description

Read ClientOrigin to discover where the top-left corner of the control is on
the screen. ClientOrigin returns X and Y coordinates in a record of type
TPoint. The TPoint type defines a pixel location onscreen, with the origin
in the top left corner of the control. X specifies the horizontal coordinate
of the point, Y specifies the vertical coordinate.

Regards
Paul McKenzie
Analyst Programmer
SMSS Ltd.

----- Original Message ----- 
From: "Neven MacEwan" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, September 09, 2003 1:36 PM
Subject: [DUG]: ClientRect


> Hi
>
> Whats the best way to find the ClientRect offset of a form?
> I'm trying to position a chlid component within a form but am
> starting with the screen pos, which I convert, but i think I also
> have to take into account the Forms non-client area (ie borders)
>
> TIA
>
>  Regards Neven
>  N.K. MacEwan B.E. E&E
>  Ph 649 621 0001
>  Fax 649 621 0400
>  [EMAIL PROTECTED]
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to