Difference between revisions of "Autosize / Layout"
From Free Pascal wiki
Jump to navigationJump to search (New page: =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 applicati...) |
|||
Line 5: | Line 5: | ||
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: | 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; // reset the counter | + | AutoSize:=false; // first reset the counter |
− | AutoSize:=true; // do one AutoSize | + | AutoSize:=true; // then do one AutoSize |
Revision as of 21:23, 20 November 2007
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