Push Button - Set Color When Pushed Down

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
kosmo
Posts: 15
Joined: Mon Feb 17, 2014 6:05 pm

Push Button - Set Color When Pushed Down

Post by kosmo » Tue Jul 08, 2014 6:49 pm

How can I set the color of a push button when it is pushed down?

Thanks,
Kosmo

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10100
Joined: Fri Feb 19, 2010 10:17 am

Re: Push Button - Set Color When Pushed Down

Post by richmond62 » Tue Jul 08, 2014 6:50 pm

on mouseDown
set the backgroundColor of me to "red"
end mouseDown

kosmo
Posts: 15
Joined: Mon Feb 17, 2014 6:05 pm

Re: Push Button - Set Color When Pushed Down

Post by kosmo » Tue Jul 08, 2014 6:54 pm

Thanks richmond62...that was the quickest response I ever had when I posted on this forum.

Appreciate your help!
Kosmo

Post Reply