Re: Textarea object?


Forums > MaxMSP > Textarea object?
December 1, 2011 | 8:21 pm

11olsen,

This was very helpful! Thanks.

I substituted a [jsui] object for your [p status] subpatcher. It handles the appending, word wrapping, scrolling. I needed the [jsui] because it gives you access to font metrics (via sketch.gettextinfo(text)) so you don’t have to use a monospace font.

There’s more work to do here, for example it would be great if the [jsui] wrapper took its width and font properties from the corresponding properties of the jit.cellblock. But for now this is good for my purposes.

Thanks again. Here it is in case you’re interested, with the javascript file for the [jsui].

– Pasted Max Patch, click to expand. –