Syntax for setting windows flags using this.patcher

Feb 25, 2013 at 5:49am

Syntax for setting windows flags using this.patcher

Hi, Can’t seem to figure this out.

How do i execute “window flags nomenu” using this.patcher rather than sending to a thispatcher object?

thx Lee

#66708
Feb 25, 2013 at 8:56am

This works to toggle whether the patcher window has a titlebar or not (so presumably will also work for toggling the menu)

function toggleTitle(state)
{
if (state > 0) {
this.patcher.window(‘title’);
} else {
this.patcher.window(‘notitle’);
}
this.patcher.window(‘exec’);
}

Which is equivalent to the following messages to thispatcher:

window flags title, window exec
window flags notitle, window exec

#240090
Feb 25, 2013 at 12:56pm

AH, great. thx, will try it out.

#240091

You must be logged in to reply to this topic.