Autosize / Layout

From Free Pascal wiki
Revision as of 21:24, 20 November 2007 by Mattias2 (talk | contribs) (→‎FAQ)
Jump to navigationJump to search

Anchor 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