dynamically change fontsize in textedit

Apr 4, 2011 at 6:21pm

dynamically change fontsize in textedit

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 …

#56075
Apr 4, 2011 at 7:42pm

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:

– Pasted Max Patch, click to expand. –
#201420
Apr 4, 2011 at 8:36pm

Hi Ben,

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

#201421

You must be logged in to reply to this topic.