If you've already looked at ScreenToClient then there is a WinAPI call called 
GetSystemMetrics which will tell you the dimensions of the title bar etc, amongst 
others.

-----Original Message-----
From: "Neven MacEwan" <[EMAIL PROTECTED]> 
Sent:  Tue, 9 Sep 2003 13:36:51 +1200 
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
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