Page 1 of 1

Can I change the cornerRadious of a roundRect button?

Posted: Sun Oct 09, 2016 3:15 pm
by Mag
I done some tests but with no luck. What I would like to have is a button with a smaller corner radious than the standard one.

My test:

Code: Select all

set the roundRadius of button "myButton" to "4" -- don't work
:shock:

Re: Can I change the cornerRadious of a roundRect button?

Posted: Sun Oct 09, 2016 3:22 pm
by dave.kilroy
I don't think this is doable with a button - can you use a graphic control (round rect) instead?

Re: Can I change the cornerRadious of a roundRect button?

Posted: Sun Oct 09, 2016 8:05 pm
by richmond62
Messing around with Round Rectangle graphics I discovered that they have several properties:

roundEnds
roundRadius
RoundHeight
roundWidth

However, while one can set the roundEnds of a graphic to flase this will have no
effect if one chooses to change the roundRadius. So all of this stuff is a bit inconsistent.
curvaceous.png
Curvaceous.livecode.zip
stack
(885 Bytes) Downloaded 254 times

Re: Can I change the cornerRadious of a roundRect button?

Posted: Sun Oct 09, 2016 8:11 pm
by richmond62
Of course Richmond is descended from Cassandra:

http://use-livecode.runrev.narkive.com/ ... ar-buttons