Using arguments in a subpatch window’s title bar

Dec 8, 2008 at 12:30pm

Using arguments in a subpatch window’s title bar

In a project I have made with Max 4.6, I used a patcher message box to change the title of a subpatch window displaying graphics. All those graphics were numbered and indentified by their respective number in the title bar. In Max 4.6, the text needed in the message box to automatically change the window title, with an argument in it, was simple:

[patcher Exercise # $1]

Despite the fact that quotation marks seem to be needed before and after the new title in a patcher message box in Max5, the use of an argument in the title doesn’t seem to work anymore. Is there another way to accomplish this in Max5?

Thanks in advance.

#41236
Dec 8, 2008 at 2:35pm

Like this:

– Pasted Max Patch, click to expand. –

You will obviously need to make some modifications for variable lengths of arguments etc…

#146644
Dec 8, 2008 at 2:38pm

Maybe I misunderstood the question. Does this help either?

– Pasted Max Patch, click to expand. –
#146645
Dec 8, 2008 at 9:17pm

Thank you very much for you help!
Your second patch does exactly what I was looking for.

#146646

You must be logged in to reply to this topic.