Forums > Javascript

Syntax for setting windows flags using this.patcher


Lee
February 25, 2013 | 5:49 am

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


February 25, 2013 | 8:56 am

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
February 25, 2013 | 12:56 pm

AH, great. thx, will try it out.


Viewing 3 posts - 1 through 3 (of 3 total)