how to resize a bpatcher

    Mar 14 2006 | 9:34 am
    Does anybody know if/how it is possible to resize a bpatcher with messages? I'd like my bpatcher to grow/shrink to make some menu appear or not. I tried to send "size x y" to thispatcher nested in my bpatcher, similarly to offset setting. Also tried to send it to thisobject. Also tried "window size x1 y1 x2 y2, window exec" sent to thispatcher.
    Actually if a max guru could give some explanation or link about bpatcher that would be really nice, becausethis object is still a mysterious thing for me.
    Any other idea that would make that growin/shrinking GUI is welcome ;-)

    • Mar 14 2006 | 10:38 am
      you should send the size message to the Thispatcher object in the patch containing the bpatcher, using the bpatchers scripting name...
    • Mar 14 2006 | 10:48 am
      I don't think resizing is possible with bpatchers. The offset message is useful for interface changes but If you just want to add something you might want to use show/hide panel scripting. Just put a named panel with the background color over your interface and script show/hide messages to thispatcher.
      I there are only a few objects you could use the show/hide technique to address the interface objects directly.
      hth, Thijs
    • Mar 14 2006 | 11:05 am
      also try "show", "hide" and "move" messages for object scripting. see the "thispatcher" helpfile (p othermessages) for details
      \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\ //// //// ///// \ \ \ //////////////////////////////////////////////////////////// /////////////// \\\ LIVE-BUILDER: \\\\ //////////////////////////////////////////////////////////// ///////////////
      ----------------------------------------- sent through webmail -----------------------------------------
    • Mar 14 2006 | 11:30 am
      you may want to have a look at Matthew Aidekman's js collection. Amongst others, there's a nice script to make tabs for bpatchers.
    • Mar 14 2006 | 12:07 pm
      Brian: "I tried to send "size x y" to thispatcher nested in my bpatcher" --> from my original mail, I think this is what I have done... But I do not understand clearly what you mean by "using the bpatchers scripting name..." so maybe I missed your point? I you think it does work, please give me more details about the syntax...
      Show/hide doesn't help because I actually want to always show a small ubumenu with presets names in the upper left corner of my bpatcher and allowing to grow the bpatcher to assess other parameters..
      Julien: thanks for the link!
      Max developpers: could it be possible to add such a feature to bpatcher?
      regards, Vincent
    • Mar 14 2006 | 12:15 pm
      You should examine the scripting subpatcher of the thispatcher helpfile, read the Reference Manual entry for the thispatcher object, and read the 2 chapters about scripting (Chapters 46 and 47) in the Max Tutorials and Topics book. The message "script size", sent to a thispatcher object, referring to a named bpatcher, will cause the object to change size.
    • Mar 14 2006 | 12:48 pm
      Damn! obviously... I knew to me it was possible somehow... (Basic rule of Max #3c) I was trying to send the message/script to the thispatcher *inside* the bpatcher while it should be sent to the thispatcher in the patch containing the bpatcher. Thanks Jeremy for getting me out of this biting one's tail circle!... vincent