Carriage Returns in [sprintf]
Does anyone know what the newline/carriage return escape character for max is? I’ve tried a number of things, none of which seem to work. I’m trying to format a comment box, to display:
But I can’t do it if there’s no carriage return character.
Quote: MuShoo wrote on Tue, 05 August 2008 14:48
> Does anyone know what the newline/carriage return escape character for max is?
It’s the normal n with the escaped by another .
Tried that one, it doesn’t seem to work.
----------begin_max5_patcher---------- 439.3ocmTssaCBBF9Z8of30tFwCoZua60naYAQrkMELHl0sl9tO.OLpSSapW f3GB+eG90ytNd47SjVOvNvdfiyYWGGCjFvY3YGuZzIbEp07ZdLxW77O776WR RNIMvsMBJSVBZIR.tSHHLInjWUPD6.uptXf7JzwwsUxYRFplX15yBJpZbEVW MuSVQjlpAGP6gje2P5opmG3Mqipk9iYAX3lfA3FjDejxN7tffk8aBlnVEDaF goQ5agAaBlNIZggNJ08TBLvhPT1DezXWbc0C92ogk2Ikb1jxOf4UbQOiTUOM LJIxWMKLIHKUOINBFsUAAsn1xtRifzp7YjjxY15DFmpE21rrQMNSo+yNyQrC +Yoq5c8iKbf1LYdtQYjqkru0.bY+ONKaY+e.L+ZWLS4XgI9qLSUgGH1v75Zk jVuiE7REB+4x8sA2LgLpOMS2vBhB5czHKyPWuRD1TuvkZ0gaRxRfow2Jy11m YCQWzcDZWkCw276.y44oi4Y+GwPIM90tbKuSfGa7lBave7pfzJorIZs25SRq 25HsnfvrM6ZZQCW8SnAZrRpeurZd8VlUFC5gYk5gKt+B7KBR2A -----------end_max5_patcher-----------
On Aug 5, 2008, at 2:48 PM, mushoo wrote:
> Does anyone know what the newline/carriage return escape character
> for max is?
As far as I know there’s no way to do this. Using multiple comment
fields is how I usually approach this sort of thing.
Yeah, that’s what I’m currently doing – the problem is that if someone happens to have a folder or filename that’s atrociously long, it bleeds over into areas I don’t want it to.
Could you not send the text to the [textedit] object instead of a comment as you can set sizes for those?
It seems like yes, I could, but I’m not sure I like that more or less than having text bleed around. With the textedit object, anything that goes past it’s boundaries is just invisible, which could be bad. Say someone has two folders, "Folder A" and ‘Folder B’ but the last character has gotten cut off by the textedit window. That last character is the most important one for knowing where your files are going to end up.
Have a look at the [textedit] inspector, try turning the automatic scrolling on and the readonly off. This allows you to click in the box and use the arrow keys to scroll vertically, if you size it right you can fit the text line by line. This means you can get to the important end bit, it just might not be on screen straight away which is possibly what you’re after. Another downside is that the user can accidentally type stuff in the box.
On Aug 5, 2008, at 2:54 PM, mzed wrote:
> It’s the normal
> with the escaped by another .
Really? I’ve never been able to get this to work.
Do you have a patch that will load a multi-line comment like the
original poster asked?
Use cr, and connect it to a [textedit] object. The text written into the text edit object will be formatted correctly.
For example in the stefan typewriter patch, when should I insert the [sprintf cr] object ?