Simple query?

May 9, 2006 at 6:36pm

Simple query?

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

#25875
May 9, 2006 at 7:08pm

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

#76718
May 9, 2006 at 7:56pm

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

Cheers

J

#76719
May 9, 2006 at 10:31pm

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

#76720
May 9, 2006 at 10:43pm

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

#76721
May 10, 2006 at 12:46am

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;

#76722

You must be logged in to reply to this topic.