Can I change the cornerRadious of a roundRect button?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Can I change the cornerRadious of a roundRect button?

Post by Mag » Sun Oct 09, 2016 3:15 pm

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:

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

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

Post by dave.kilroy » Sun Oct 09, 2016 3:22 pm

I don't think this is doable with a button - can you use a graphic control (round rect) instead?
"...this is not the code you are looking for..."

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10123
Joined: Fri Feb 19, 2010 10:17 am

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

Post by richmond62 » Sun Oct 09, 2016 8:05 pm

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 253 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10123
Joined: Fri Feb 19, 2010 10:17 am

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

Post by richmond62 » Sun Oct 09, 2016 8:11 pm

Of course Richmond is descended from Cassandra:

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

Post Reply