Page 1 of 1

Bug: Button borders can't be set

Posted: Tue Oct 19, 2010 9:15 pm
by MichaelBluejay
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

Re: Bug: Button borders can't be set

Posted: Sun Oct 24, 2010 4:09 pm
by Janschenkel
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.

Re: Bug: Button borders can't be set

Posted: Sat Nov 27, 2010 12:11 am
by MichaelBluejay
I'm sorry, I didn't understand any of that at all.

Re: Bug: Button borders can't be set

Posted: Sat Nov 27, 2010 3:00 am
by bn
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