Syntax for setting windows flags using this.patcher


    Feb 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

    • Feb 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
    • Feb 25 2013 | 12:56 pm
      AH, great. thx, will try it out.