center text in message box?

Jan 10, 2012 at 1:33pm

center text in message box?

Hi, just a quick one,

have different phrase’s (legato, forte) appearing in a message box, can i format them so they are centered???

or if there is there a better way to make my interface pretty Im all ears!

Thanks,

Oli

#61143
Jan 10, 2012 at 1:51pm

If what you want is to have text centered, you could use a textbutton instead of a message box.

p

#220356
Jan 10, 2012 at 2:05pm

Hi, ill explain my patch a bit better, (i cant post it up as im at work!)

its a music theory learning patch for musical terms where a random number selects a entry from coll (containing a list of musical terms,) and the entry selected is displayed in the message box. the user then matches the meaning to the term.

eg

Forte = Loud

so basically i need to be able to ‘set’ what the message box shows, can this be done with ‘text’ button?, Ive had a quick glance at the reference manual and still unsure till i get home and have a play.

the reason i want to do this is when a get a term like ‘fine’ and one like ‘diminuendo’ the difference in length makes it look a bit…….well shit, and if it was centered it might look neater.

Cheers

#220357
Jan 10, 2012 at 3:15pm

Maybe having a quick glance at the reference manual wasn’t enough. I hope the following patch will clarify my first post. You can of course change the apperance of the button and make it look nice.

– Pasted Max Patch, click to expand. –
#220358
Jan 10, 2012 at 9:50pm

thats great, just what i needed.

thanks!

#220359

You must be logged in to reply to this topic.