Re: Textarea object?

Forums > MaxMSP > Textarea object?
Dec 01 2011 | 8:21 pm


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. --

  1. jsuitextarea.js

Subscribe to the Cycling ’74 Weekly Newsletter

Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.

* indicates required