Buttons

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Buttons

Post by warrenk » Fri Nov 26, 2010 6:39 pm

Is there anyway to change the colors on buttons. Looks like the default is grey and blue when you hover over them. How would I change the hover color?

Thanks,
Warren

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm
Location: NE USA

Re: Buttons

Post by WaltBrown » Fri Nov 26, 2010 11:21 pm

Hi Warren.
Here's one way:

Code: Select all

on mouseEnter
   set the backcolor of me to "blue"
end mouseEnter

on mouseLeave
   set the backcolor of me to "light gray"
end mouseLeave
Walt
Walt Brown
Omnis traductor traditor

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”