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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jpalme
Posts: 6
Joined: Sun Feb 22, 2009 6:14 pm
Contact:

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

Post by jpalme » Sun Feb 22, 2009 8:08 pm

How do I change the background color on a buttom to red instead of white?

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Mon Feb 23, 2009 7:06 am

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.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply