Displaying text in a panel
Does anybody know how one can create a display box in a patch that will display incoming text messages?
I'm developing an OSC interface for my mixer and could do with being able to display several lines (about 20 I guess) of incoming OSC messages at once for debugging purposes. A message can display a single OSC message but I'm looking for some way to be able to display a sequence of messages. For now, I'm printing the messages to the Max Console but I'd like it to appear in a (scrollable) display window embedded in my patch.
Thanks.
you can use comment object in bpatcher with vertical scroll enabled.

or coll - jit.cellblock combo.
---
How are you going to limit number of last captured OSC messages ?
Maybe like this ?
Thanks. I’ll try that but it will be Monday before I get a chance.
Hi, I used chooser once
Or here's an older post using jit.cellblock
https://cycling74.com/forums/textarea-object
you need this jsui for the patcher in this thread
Brilliant! Thank you. I've created a Chooser object with a bit of code around it to limit the list to 64 items. Works a treat for what I need. I just need to understand what "Prepend Append" is doing?
It's prepending "append" to the incoming message so that a message like "append Any text ..." arrives at the chooser.
Ah! I've got it now - with certain objects, like chooser, append has another meaning, such as adding a message to the end of a list or table. In the case of chooser, it adds the message to the end of the list. Simples!
haha , i didnt know that messagebox can do that, in a quick and dirty patcher i still am using semicolons to force a line break. :)
of course cellblock has various benefits (but be careful with graphic glitches when it is inside a bpatcher)
This is how I did it to display the last 64 OSC messages received by my OSC decoder:
.png)
The "r RESET" comes from a master loadbang to clear the display or it can be cleared as required by hitting the bang button. The incoming lines of OSC arrive through the "r OSCdebug" link. Each line is prepended with "append" to add them as individual lines in the chooser, which is sized to display 64 lines. The count message causes a "Count n" message to be outputted from the bottom right output of of the chooser object. If n reaches 64, the top line is then deleted removing the need for a scroll bar. I embed these objects in the locked background layer and disable clicks for all the items except the bang button so that nothing gets altered by mistake!