Page 1 of 1

How do I change the background color on a button to red

Posted: Sun Feb 22, 2009 8:08 pm
by jpalme
How do I change the background color on a buttom to red instead of white?

Posted: Mon Feb 23, 2009 7:06 am
by Janschenkel
You can use the Inspector palette - panel Colors & Patterns - second row of buttons. If you want to do it by script, simply use:

Code: Select all

set the backgroundColor of button "MyShinyButton" to red
Revolution has a number of built-in color names, and ypou can also use RGB triplets like "255,0,0" for red.

HTH,

Jan Schenkel.