Syntax for setting windows flags using this.patcher

Lee's icon

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

willyc's icon

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

Lee's icon

AH, great. thx, will try it out.