Autosize / Layout
From Free Pascal wiki
Jump to navigationJump to searchAnchor Sides
See Anchor Sides.
FAQ
Why does TForm.AutoSize not work when something changes?
TForm.AutoSize only works once at creation time. After that the size is up to user and the windowmanager. The application can force a resize with the following:
AutoSize:=false; // first reset the counter AutoSize:=true; // then do one AutoSize