color numbox

Apr 27, 2007 at 9:05am

color numbox

Hello,
I can’t change the color for numbox.
Max Ref says :
The word color, followed by a number from 0 to 15, sets the background of
the number box to one of the standard object colors which are also
available via the Color submenu in the Object menu.

It doesn’t work for me !!

PB G4 – 4.6.2

max v2;
#N vpatcher 346 301 946 701;
#P window setfont “Sans Serif” 9.;
#P number 97 124 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 97 143 48 196617 color $1;
#P number 97 182 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P pop;

#31620
Apr 27, 2007 at 10:33am

The color message was a last millenium solution to make a patch look realy fancy: 15 predefinable colors. With the new millenium came rgb support, drowning us in an ocean of about 8 with 28 zeros of possible color schemes for a number box. Apparantly the color message is now not any longer supported and has not yet been erased from the manual. If you want to achieve old school behavior, this will do it.

_
johan

#P window setfont “Sans Serif” 9.;
#P number 107 106 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 107 185 68 196617 prepend brgb;
#P newex 107 160 63 196617 r thecoloris;
#P message 107 133 152 196617 ; max getboxcolor $1 thecoloris;
#P number 107 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P connect 4 0 1 0;
#P connect 3 0 0 0;
#P connect 2 0 3 0;
#P window clipboard copycount 5;

#103003
Apr 27, 2007 at 11:52am

On 27 avr. 07, at 12:33, jvkr wrote:

> The color message was a last millenium solution to make a patch
> look realy fancy: 15 predefinable colors. With the new millenium
> came rgb support, drowning us in an ocean of about 8 with 28 zeros
> of possible color schemes for a number box. Apparantly the color
> message is now not any longer supported and has not yet been erased
> from the manual. If you want to achieve old school behavior, this
> will do it.

The prefered method is tu use frgb/brgb.

ej

#103004

You must be logged in to reply to this topic.