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 ?
problem when changing BG colour of a button
Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21
Re: problem when changing BG colour of a button
If you want a gradient, check out the fillGradient property
Re: problem when changing BG colour of a button
FillGradient is not supported for IOS !!!
-
- VIP Livecode Opensource Backer
- Posts: 7257
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: problem when changing BG colour of a button
The dictionary has an iOS icon for it.pshuster wrote:FillGradient is not supported for IOS !!!
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: problem when changing BG colour of a button
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*