Bug: Button borders can't be set

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
MichaelBluejay
Posts: 230
Joined: Thu Jul 01, 2010 11:50 am

Bug: Button borders can't be set

Post by MichaelBluejay » Tue Oct 19, 2010 9:15 pm

When setting the borderColor of a button ("set borderColor of button test"), nothing happens. The border doesn't show. Button borders should be settable according to the Dictionary. The properties that the Dictionary says must be set are already the defaults.

Klaus confirmed that this doesn't work in this thread: http://forums.runrev.com/phpBB2/viewtop ... f=8&t=5919

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Re: Bug: Button borders can't be set

Post by Janschenkel » Sun Oct 24, 2010 4:09 pm

The LiveCode engine delegates the drawing of controls to the underlying operating system, under a specific combination of property settings (for a button, I believe it's the 'threeD' property that triggers it, and for a field it's the combination of 'threeD' and a 'borderWidth' of 2) and ignores the 'irrelevant' settings at that point, including the colors. Admittedly, a better solution would have been a checkbox 'Native appearance' which would disable all the subsequently ignored settings if turned on.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

MichaelBluejay
Posts: 230
Joined: Thu Jul 01, 2010 11:50 am

Re: Bug: Button borders can't be set

Post by MichaelBluejay » Sat Nov 27, 2010 12:11 am

I'm sorry, I didn't understand any of that at all.

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

Re: Bug: Button borders can't be set

Post by bn » Sat Nov 27, 2010 3:00 am

Hi Michael,

What Jan is saying is that the standard buttons as of the toolbar work as you would expect in the operating system you want to deploy to. If you change the size or the 3D then you can do your own buttons with all the options that dont work on the standard buttons.

I made a little stack that covers many of the options. I hope it helps to understand the button object.

the button looks kind of funny because I applied all kinds of colors. Have fun playing with the stack. You can always start anew by deleting the button "theButton" and placing a new one that you name "theButton"

kind regards

Bernd
Attachments
buttonMichaelBlueJay.rev.zip
(2.38 KiB) Downloaded 184 times

Post Reply