dynamically change fontsize in textedit

earmade's icon

Hi,

I've search in the forum for an answer but didn't find anything...
I try to change the font size of a textedit object with a number box attached to a message (fontsize $1).
It works (the font size changes) but the size of textedit is affected too and I want it to have and keep a predefined size.
I'd appreciate some help !

Ps: I'm a newbie ...

Ben Bracken's icon
Max Patch
Copy patch and select New From Clipboard in Max.

This is currently just how textedit works. As a bit of a workaround, you can set the object's rect just after you set the font size, something like this:

earmade's icon

Hi Ben,

Exactly what I was looking for ...
Thank you so much !!!