Does anyone know of a Max object that's suitable for displaying a growing body of text?
What I need is something with a scrollbar, that scrolls to the bottom as new text comes in, or can be told to do so.
The [textedit] object has no scrollbar, cannot be scrolled programmatically, and automatically scrolls back to the top whenever the user stops interacting with it.
1) it inserts a space before appended text when you append, a well-intentioned behavior which AFAICT you can't turn off if you don't want it; and
2) if you send it a string with a comma or semicolon, the comma or semicolon appears backslashed in the textedit window:
append "To be or not to be, that is the question;" => To be or not to be, that is the question;
Curiously, the [text] object does not insert these backslashes. But the [text] object cannot be used for display. It shows its contents in a text window (with scrollbars) when you open it, but this window is not updated when new text is added, even if you send the [text] object another "open" message. You have to close the window and open it again.
Any ideas how I can display a growing text?