Lazarus

Programming => LCL => Topic started by: Jvan on May 16, 2021, 06:54:26 pm

Title: How to get the size of form borders?
Post by: Jvan on May 16, 2021, 06:54:26 pm


Thanks.
Title: Re: How to get the size of form borders?
Post by: engkin on May 16, 2021, 07:47:21 pm
On Windows use:
Code: Pascal  [Select][+][-]
  1. uses
  2.   Windows;
  3. ...
  4. var
  5.   wi: TWindowInfo;
  6. begin
  7.   GetWindowInfo(Handle,wi);

TWindowInfo has both rcWindow and rcClient.
TinyPortal © 2005-2018