Button colour

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
HJay
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 85
Joined: Sun Mar 04, 2012 12:16 pm

Button colour

Post by HJay » Fri Apr 13, 2012 12:46 pm

Hi

I have been using the ‘push button’ button and have just started playing around with changing the appearance. The standard grey ‘push button’ has a slightly different coloured bottom half to its top half giving the appearance of being slightly rounded. When I change the colour to say green it loses this two tone nature and becomes flat. It also seems to change the corners of the button from rounded to square. I have played with some of the other settings but I do not seem to be able to set the two tone colours? Is there a way to do this that isn’t to complicated?

Many thanks

HJay

kenift
Posts: 7
Joined: Thu Apr 26, 2012 6:35 pm

Re: Button colour

Post by kenift » Mon Apr 30, 2012 3:06 pm

I've also been struggling with inconsistent button behavior.
In button/graphics_effects/ select Drop Shadow, Inner Shadow, Inner Glow and start with settings like:

Color: Black, Blend: Normal, Opacity: 180
Spread: 0
Size: 21
Distance: 5
Angle: 222

It would be nice if the defaults were something half sensible, but then that would be too easy...

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Button colour

Post by BvG » Mon Apr 30, 2012 3:57 pm

The nice rounded buttons are the default OS button style. When you change certain appearance properties like the backgroundColor, you change the button to the "internal" rendering, which is.. basic at best.

The easiest way to do your own rounded buttons is to make the pressed and the "default" of the button as an image, then set the icon and the hilitedIcon of a button who'se style is "transparent".

And of course the defaults for blending are sensible for general blendings, not for emulating buttons ;)
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply