Strange behavior of the buttons ... color

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Strange behavior of the buttons ... color

Post by gpb01 » Wed Jun 19, 2013 4:12 pm

I'm experiencing a strange behavior with the buttons ...

... if you take a normal "button" and you change the style in "roundrect" ... the Border Color will be ignored and the border takes the color of the Text ... :o

How can I have a "roundrect" button with Border Color different from the Text color ???

TIA,

Guglielmo

P.S. : This happens both with LiveCode 5.5 and LiveCode 6.0.2

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10356
Joined: Wed May 06, 2009 2:28 pm

Re: Strange behavior of the buttons ... color

Post by dunbarx » Wed Jun 19, 2013 5:55 pm

I see this as well. If I set the border color, it only appears with a pushButton or a rectangle. All the others show black. Or nothing if transparent.

There is also some relationship to the "3-D" property. If set, in one of the styles where a border color is displayed, the border color is disabled, and this is true in fields as well.

Craig Newman

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: Strange behavior of the buttons ... color

Post by bn » Wed Jun 19, 2013 6:48 pm

Hi Gugliemo,

I don't know the answer but if you want to cheat a bit you can get a round rectangle button with black text (or any color you like) and the border color you like.

choose your round rectangle button, in the properties inspector choose graphic effects -> outerglow
choose a color
then
blendmode normal
filter gaussian
opacity 255
size 1
spread 255

you can change size

set the borderwidth of your round rectangle button to 0 (e.g. from the message box)

Now you have a round rectangle button with a "bordercolor" of your choice

Kind regards
Bernd

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: Strange behavior of the buttons ... color

Post by gpb01 » Wed Jun 19, 2013 7:36 pm

Hi Bernd,
that's great !!! Works like a charm :)

Thanks a lot !!!

Guglielmo

Post Reply