Forums > MaxMSP

redrawing order in patchers with bpatchers

April 13, 2006 | 4:17 pm

hello,

I’ve noticed there are a few issues like this discussed related to bpatchers but I haven’t seen anything like this specifically.

Basically I have some message boxes inside bpatchers and I have some objects ontop of the bpatchers. The bpatchers are brought to front and display correctly until the patcher is made fullscreen. Then the message boxes inside the bpatchers draw ontop (front). Message boxes normally draw correctly unless they are in the bpatchers.

This usage might seem a little obscure but the behaviour is still not what is expected. I can use the refresh message after some delay. This is not ideal since I can’t be sure when the fullscreen redrawing has finished, 500ms seems safe but untidy since the message boxes display briefly before being drawn correctly.

The actual usage employs a custom object (which I first thought was at fault) and I’m resizing this on going fullscreen to obscure the message boxes. But as the example shows it happens with built in objects too. (2d slider in this case.)

Max/MSP 4.5.7 OSX10.3.9

#P button 29 216 15 0;
#P user pictslider 195 216 100 100 4 4 4 4 SliderDefaultKnob.pct 1 SliderDefaultBkgnd.pct 1 2163 0 8323072 127 1. 1.;
#P bpatcher 210 226 68 22 -54 -59 testb 2;
#N vpatcher 10 59 529 228;
#P window setfont "Sans Serif" 9.;
#P message 57 62 61 196617 msg in bpat;
#P pop;
#BP pop 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 29 239 61 196617 delay 1000;
#P message 29 262 44 196617 refresh;
#P comment 199 198 100 196617 2d slider at front;
#P message 207 269 78 196617 msg not in bpat;
#P message 207 135 78 196617 msg not in bpat;
#P newex 107 159 38 196617 sel 32;
#P newex 107 137 40 196617 key;
#P toggle 107 180 15 0;
#P message 107 199 70 196617 fullscreen $1;
#N thispatcher;
#Q end;
#P newobj 89 298 61 196617 thispatcher;
#P bpatcher 205 97 68 22 -54 -59 testb 2;
#N vpatcher 10 59 529 228;
#P window setfont "Sans Serif" 9.;
#P message 57 62 61 196617 msg in bpat;
#P pop;
#BP pop 0;
#P user pictslider 196 80 100 100 4 4 4 4 SliderDefaultKnob.pct 1 SliderDefaultBkgnd.pct 1 2163 0 8323072 127 1. 1.;
#P comment 197 65 100 196617 2d slider at back;
#P window linecount 3;
#P comment 139 329 217 196617 when switching from to too fullscreen the message boxes in bpatchers are initially drawn at the front even if they are at the back;
#P connect 5 0 4 0;
#P connect 6 0 16 0;
#P connect 6 0 5 0;
#P connect 16 0 13 0;
#P connect 8 0 6 0;
#P connect 13 0 12 0;
#P connect 12 0 4 0;
#P connect 7 0 8 0;
#P window clipboard copycount 17;


Viewing 1 post (of 1 total)