button won't display properly

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
herbwords
Posts: 70
Joined: Sat Dec 01, 2007 2:59 am

button won't display properly

Post by herbwords »

button.tiff
button.tiff (11.29 KiB) Viewed 3529 times
Hi to All,

I changed the script in this button to make it red and say Locked or be green and say Unlocked. The button assumed this square shape and I can't figure how to get it's shape to look like it use to. I'm attaching a picture.

Here's the form I used:

set the backgroundColor of me to "red"
set the name of me to "Locked"

Thanks,

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

Re: button won't display properly

Post by dunbarx »

Setting the background color seems to square off the shape of a pushButton. Try setting the style of your button to "roundRect". Is this what you wanted to see?

Craig Newman
herbwords
Posts: 70
Joined: Sat Dec 01, 2007 2:59 am

Re: button won't display properly

Post by herbwords »

Hi Craig,

I tried that and it looks OK on my Mac but weird on Windows. The other way looks OK on Windows and weird on my Mac. I hope I don't have to make 2 versions just for a button! I posted 2 pics of what it looks like on Windows when I make it a rounded rect btn and size it for the Mac and how it looks on my Mac.

Thanks,

Patrick
Attachments
btn3.tiff
btn3.tiff (11.49 KiB) Viewed 3504 times
button2.tiff
button2.tiff (8.27 KiB) Viewed 3504 times
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: button won't display properly

Post by jmburnod »

Hi,

Why not using icons instead properties of btns ?

Best

Jean-Marc
https://alternatic.ch
Post Reply