Re: How to make TCheckBox autosize work correctly on Linux?

Bo Berglund via fpc-pascal <[email protected]> Wed, 07 Jan 2026 00:15:34 +0100
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>
On Tue, 6 Jan 2026 21:33:27 +0000, Martin Wynne via fpc-pascal
<[email protected]> wrote:

>Hi,
>
>Suggest:
>
>with checkbox do begin
>
>Autosize:=False;
>Caption:='new text';
>Width:=ControlCanvas.TextWidth(Caption);
>
>end;
>
>Martin.

Did not work:

Error: Identifier not found "ControlCanvas"

Where is this item declared?

-- 
Bo Berglund
Developer in Sweden

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal