Forums > MaxMSP

message box colors and standalones.

September 27, 2007 | 7:39 pm

greetings,

i have notice that since i changed my color preferences when my
standalone is moved to another system [ mac 10.4 ] that the message
box colors change to match those which differ within my max/msp
app on that komputer. therefore, i assume that if i was not running
max/msp and simply ran the application it would run with those ‘default’
colors. suckx. but, if that is the case how do i restore the default
colors to be certain about the aesthetics of the message boxes should
should i be running a komputer which doesn’t have max/msp ? for
that matter, if i was to send the app to someone who had max and
didn’t change their default to match mine i may have pink message
boxes where i hoped them to be black.

thanks,

_z


September 27, 2007 | 8:44 pm


October 2, 2007 | 4:33 pm

Try this. You will notice I’ve put it into my Extras folder (onecopy).

The patch was not originally mine, someone else posted something similar to the list about a week after Max 4 came out. I just tweaked it a bit.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 352 109 44 196617 onecopy;
#P window linecount 2;
#P message 115 113 145 196617 ; max boxcolor $4 $1 $2 $3 1;
#P window linecount 1;
#P newex 115 90 64 196617 pack 0 0 0 0;
#P button 91 17 15 0;
#P message 115 45 28 196617 next;
#P newex 115 17 40 196617 Uzi 16;
#N coll defaultcolors;
#T flags 1 0;
#T 0 170 170 170;
#T 1 204 156 97;
#T 2 255 189 156;
#T 3 204 140 140;
#T 4 255 156 156;
#T 5 255 227 23;
#T 6 40 204 140;
#T 7 74 156 97;
#T 8 97 156 156;
#T 9 156 179 255;
#T 10 194 181 207;
#T 11 153 153 255;
#T 12 102 102 204;
#T 13 153 102 153;
#T 14 255 92 174;
#T 15 255 138 215;
#P newobj 115 63 85 196617 coll defaultcolors;
#P window linecount 2;
#P comment 9 8 82 196617 click to reset default colors ->;
#P connect 1 1 5 3;
#P connect 5 0 6 0;
#P connect 1 0 5 0;
#P connect 3 0 1 0;
#P connect 2 0 3 0;
#P connect 4 0 2 0;
#P window clipboard copycount 8;


October 2, 2007 | 7:25 pm


October 2, 2007 | 8:52 pm


October 3, 2007 | 1:24 am

greetings,

thanks so much. this list and the folks on it rock!

the restore to default patch definately corrected that dilemma.
and, in hindsight i guess poking my nose inside the colors
patch would have helped . . . . a little. but, the patch was
exactly the ticket.

however, i no like the default colors. i knew i changed them
for a reason. but, i don’t want to mess up anyone’s preferences
either.

so, part 2 "; max getboxcolor" and the closebang approach sounds like the
plan. albeit, one that isn’t come so quickly at this point. there’s a lot
going on in there to simple resolve the colors to my liking. eventually,
i will figure it out. and, i think the word pain seems fitting . . .in the
you know what. i love that i will learn a little about lcd etc . . in the
process. but, i have been wrestling with this for a while now when i
would rather move on to more critical patching. that being said, i can
not look at the patch with the default colors provided – just can’t do
it.

anyway, thanks again.

peace,

_z


October 3, 2007 | 1:26 am

ps. if anyone has ever used this method below ->

> What you should do is use "; max getboxcolor" to interrogate and remember the
> user’s color’s right before you change them, and then use closebang to restore
> them on your way out.

and can give me one more little nudge i wouldn’t
hate you for it ;]

peace+respekt,

_z


October 3, 2007 | 4:44 am

Quote: masina-makslinieks wrote on Tue, 02 October 2007 19:26
—————————————————-
>
> ps. if anyone has ever used this method below ->
>
> > What you should do is use "; max getboxcolor" to interrogate and remember the
> > user’s color’s right before you change them, and then use closebang to restore
> > them on your way out.
>
> and can give me one more little nudge i wouldn’t
> hate you for it ;]
>
>
>
> peace+respekt,
>
>
> _z

if you _dont give your patch to other people, you could implement a little preset management right inside the colors "extra", which can "reset" your personal default colors after they



grg
October 3, 2007 | 4:50 pm


October 3, 2007 | 8:40 pm

>
> > What you should do is use "; max getboxcolor" to interrogate and remember the
> > user’s color’s right before you change them, and then use closebang to restore
> > them on your way out.
>
> and can give me one more little nudge i wouldn’t
> hate you for it ;]

Actually, the other nudge is on page 106 of Max46Topics.pdf. It says:

boxcolor
Sets one of the 15 default object colors in the Color submenu. boxcolor is followed by five arguments. The first is the index (between 1 and 15), followed by three values in the range 0-255 that specify the color for this index, and a final value that specifies whether this change overwrites the user preferences (1) or not (0).

So, my previous suggestion was overkill. Try something like this:

#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P comment 310 187 170 196617 Restart Max and see that this button is pinkish again.;
#P message 154 185 128 196617 ; max boxcolor 3 0 0 255 0;
#P message 159 116 128 196617 ; max boxcolor 3 0 255 0 0;
#P button 58 113 71 3;
#P message 154 156 135 196617 ; max boxcolor 3 255 0 0 0;
#P comment 297 118 170 196617 Click on one of these , and unlock the patcher to see the change;
#P window clipboard copycount 6;

mz


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