Forums > MaxMSP

Simple query?

May 9, 2006 | 6:36 pm

Hi all,

This sounds strange, but is it possible to have a message box where the colour of the text and background can be altered? There aren’t any controls for it when you right click them. The text it receives is coming from a prepend_set object if that helps.

Any ideas please?

Cheers

Jay


May 9, 2006 | 7:08 pm

You can do it in limited fashion with the "color" message, but you can
only control the color of the background. (the text changes dependent
on the background)

Peter McCulloch


May 9, 2006 | 7:56 pm

Thanks for the info. Forgot to mention that I had tried that. Is there any other way?

Cheers

J


May 9, 2006 | 10:31 pm

I do variable-colour messages boxes with a hack: I create a ubumenu
with a single item, and disable it for mouse clicks. You can then set
RGB colours for all sorts of things…

– N.

nick rothwell — composition, systems, performance — http://
http://www.cassiel.com


May 9, 2006 | 10:43 pm

Right-o, or there’s also the umenu label mode. It would be nice,
however, if all the graphical objects were in RGB-land.

Peter McCulloch


May 10, 2006 | 12:46 am

Thanks folks. I am still having toruble though. Have tried using both and can’t get it to work for my purposes. I need to take the contents of a message box and input it into the umenu, so that it is the only item in the umenu, but umenu won’t now what it is until I open the file. The patch below shows what I’m uisng so far to try this, I have taken away the gumph coz it doesn’t work. Any help please?

Cheers

Jay

max v2;
#N vpatcher 25 70 782 628;
#P window setfont "Sans Serif" 9.;
#P user ubumenu 289 306 100 9109513 0 0 1 0;
#X prefix_set 0 0 0;
#P user umenu 179 306 100 9109543 3 64 322 0;
#P message 156 214 50 9109513;
#P window linecount 1;
#P newex 156 180 57 9109513 prepend set;
#P message 91 96 28 9109513 open;
#P newex 91 137 79 9109513 sfinfo~;
#P connect 1 0 0 0;
#P connect 0 5 2 0;
#P connect 2 0 3 0;
#P pop;


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