Darker shade on button push?

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
sx-74
Posts: 22
Joined: Wed Nov 30, 2011 11:27 pm

Darker shade on button push?

Post by sx-74 » Sat Dec 10, 2011 12:58 am

Hey all,
I am very new to LiveCode and the MobGui.
I have built an app, however, the buttons seem lacking.
Is there a way to make the button change colors when pushed, similar to how other apps work in the IOS?
Ex. Change from a light blue to a dark blue when pushed.
(livecode 4.6.4 MobGui .27)
Ideas?

- Jay

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7239
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Darker shade on button push?

Post by jacque » Sun Dec 11, 2011 12:57 am

In the button's property inspector, turn on the autohilite property. This is usually the default setting but you may have accidentally turned it off. Some types of buttons hilite differently, for example, radio and checkboxes use "hilite" to toggle their active status. What type of button are you using?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Darker shade on button push?

Post by Jellicle » Mon Dec 12, 2011 2:07 am

If you are using MobGUI buttons you can set the touch colour in the MobGUI control palette. Just select the button and you'll see the properties you can change.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

sx-74
Posts: 22
Joined: Wed Nov 30, 2011 11:27 pm

Re: Darker shade on button push?

Post by sx-74 » Mon Dec 12, 2011 10:41 pm

Thank you both.

sx-74
Posts: 22
Joined: Wed Nov 30, 2011 11:27 pm

Re: Darker shade on button push?

Post by sx-74 » Wed Dec 14, 2011 8:08 pm

Jellicle wrote:If you are using MobGUI buttons you can set the touch colour in the MobGUI control palette. Just select the button and you'll see the properties you can change.

Gerry
Gerry,
Thanks for the info.
I see in my MobGui pane that the colors are set differently.
However, when I use the sim, or load it on a actual device, the colors never change.
Image

Using the Property Inspector, the "Hilite one radio button at a time" is checked off.

Thoughts?

Post Reply

Return to “MobGUI”