[fpc-pascal] How to make TCheckBox autosize work correctly on Linux?

Martin Wynne martin at 85a.uk
Tue Jan 6 22:33:27 CET 2026


Hi,

Suggest:

with checkbox do begin

Autosize:=False;
Caption:='new text';
Width:=ControlCanvas.TextWidth(Caption);

end;

Martin.



More information about the fpc-pascal mailing list