delphi 窗体的位置和高宽度-TForm:Letf、Top、Width、Height、ClientWidth、ClientHeight

delphi 窗体的位置和高宽度-TForm:Letf、Top、Width、Height、ClientWidth、ClientHeight

[窗体的高度和宽度]:


[客户区的高度和宽度]: 



[窗体在屏幕中的位置]: 

 

 

 

 


2020.02.15

补充4个属性:

BoundsRect / GetWindowRect  外围区域

ClientRect / GetClientRect  客户区域

例如:

var
 R:TRect; //Rect(左,上,宽,高)
begin    
 R:=Self.BoundsRect;
 GetWindowRect(Handle,R);

 R:=Self.ClientRect;
 R:=GetClientRect;
end;

  

  

 

创建时间:2019.08.21  更新时间:2020.02.15

原文地址:https://www.cnblogs.com/guorongtao/p/11386854.html