patcher window growbars

Mar 28, 2008 at 2:18pm

patcher window growbars

In the mxj help file, I noticed that the patcher window has no grow bars but it does have the grow tab at the bottom-right corner. Does anyone know how this is achieved?

Can’t seem to find a thispatcher message that keeps that tab. gets rid of grow bars and grow tab. Maybe it’s the setGrow(false) in the Java source that does this, and it’s not possible in Max?

best,
Zachary

#36575
Mar 30, 2008 at 2:57pm

bump.

Someone must know this. Thanks.

best,
Zachary

#125619
Mar 30, 2008 at 4:45pm

The secret must lie inside mxj. Supposedly this line does it: p.getWindow().setGrow(false);

_
johan

#125620
Mar 30, 2008 at 5:38pm

“Maybe it’s the setGrow(false) in the Java source that does this, and it’s not possible in Max?”

Yeah, that’s what I assumed as well. But I wonder if there is a Max equivalent w/o Java…

Zachary

#125621
Apr 12, 2008 at 3:59am

(Code below) To hide the growbars you need to create a thispatcher object and then have three message boxes attached to the left inlet. The messages are:
window flags nogrow
window flags grow
window exec

Click on the nogrow message and then on the exec message. The patcher window will reform minus the growbars. Clicking on the grow message and then on the exec will cause the growbars to reappear.

To use this in a patch, in edit mode set the desired size of your patch window, click the nogrow and exec messages, and then exit edit mode (making sure that your message boxes, etc are set to be hidden in run mode).

Hope this helps.

max v2;
#N vpatcher 283 131 557 348;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 60 84 95 196617 window flags grow;
#P message 60 60 105 196617 window flags nogrow;
#N thispatcher;
#Q window flags grow close zoom nofloat;
#Q window size 283 131 557 348;
#Q window title;
#Q window exec;
#Q savewindow 1;
#Q end;
#P newobj 60 120 60 196617 thispatcher;
#P message 60 102 65 196617 window exec;
#P hidden connect 3 0 1 0;
#P hidden connect 0 0 1 0;
#P hidden connect 2 0 1 0;
#P pop;

#125622
Apr 12, 2008 at 4:47am

charred,

Thanks for the help – that’s not what I’m asking though. Reread my initial post, I actually describe the patch you just posted:

———-
from my first post:
“In the mxj help file, I noticed that the patcher window has no grow bars but it does have the grow tab at the bottom-right corner. Does anyone know how this is achieved?

Can’t seem to find a thispatcher message that keeps that tab. gets rid of grow bars and grow tab. Maybe it’s the setGrow(false) in the Java source that does this, and it’s not possible in Max?”

———-
Go to the mxj helpfile to see what I’m talking about here. If you know a way to achieve this with a Max message (as opposed to with java), please let us know.

#125623

You must be logged in to reply to this topic.