Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2024-02

Autosize not doing its job in Lazarus 2.2.4

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Timothy Groves

If I set font sizes on controls using the following code:

 ? index := ComponentCount;
 ? while (index > 0) do begin
 ??? dec (index);
 ??? if (Components [index] is tControl) then
 ????? TControl (Components [index]).Font.Size := dGlobal.FontSize;
 ? end;

then the form will not resize to match.? AutoSize is set in all the right places, but a form that consists only of a single label will still not resize.? No constraints are set, and if I change the font size at design time, the form will resize.? What am I doing wrong?

Reply by email