Forums > MaxMSP

patcher window growbars

March 28, 2008 | 2:18 pm

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


March 30, 2008 | 2:57 pm

bump.

Someone must know this. Thanks.

best,
Zachary


March 30, 2008 | 4:45 pm

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

_
johan


March 30, 2008 | 5:38 pm

"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


April 12, 2008 | 3:59 am

(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;


April 12, 2008 | 4:47 am

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.


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