problem when changing BG colour of a button

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
pshuster
Posts: 9
Joined: Thu Apr 19, 2012 11:22 pm

problem when changing BG colour of a button

Post by pshuster » Fri May 11, 2012 8:28 pm

Hi All:
I have MobGui buttons on an iPhone app. I want to be able to change the colour of the button and also be able to put the original colour back.
The buttons have vertical gradients when created. When I change the colour of a button with the statement:
set the backgroundColor of graphic "background" of group "Button-1034" to "red"
I get a solid red background with no gradients. If I touch the bottom, it reverts back to the orig colour, BUT the gradient is now Horizontal.

It there a way to not have the gradient change (or to control it), and also to apply a BG colour that has gradients rather than a solid colour ?

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: problem when changing BG colour of a button

Post by shaosean » Mon May 21, 2012 11:17 am

If you want a gradient, check out the fillGradient property

pshuster
Posts: 9
Joined: Thu Apr 19, 2012 11:22 pm

Re: problem when changing BG colour of a button

Post by pshuster » Tue May 22, 2012 2:05 pm

FillGradient is not supported for IOS !!!

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

Re: problem when changing BG colour of a button

Post by jacque » Tue May 22, 2012 5:07 pm

pshuster wrote:FillGradient is not supported for IOS !!!
The dictionary has an iOS icon for it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: problem when changing BG colour of a button

Post by shaosean » Wed May 23, 2012 11:49 am

The online dictionary I linked to does not show it being supported in the mobile versions, but I do believe that the online dictionary is out of date *sigh*

Post Reply

Return to “MobGUI”