roundRadius as a property of buttons

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

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

Re: roundRadius as a property of buttons

Post by richmond62 »

If you are desperate you can fake rounded buttons using a graphic with a gradient and a black outer glow:

these will resize without "going wonky" as Livecode's
inbuilt "Rounded Buttons" do:
The attachment FAKE.png is no longer available
FAKE.png
FAKE.zip
(536 Bytes) Downloaded 264 times
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10433
Joined: Fri Feb 19, 2010 10:17 am

Re: roundRadius as a property of buttons

Post by richmond62 »

To complete the illusion you need to set the label of the graphic via the Message Palette:
MBOX.png
then set the button's NAME to visible (why not the LABEL ?????):
Props.png
and "Bob's yer uncle":
BAKED_FAKE.png
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: roundRadius as a property of buttons

Post by FourthWorld »

richmond62 wrote:then set the button's NAME to visible (why not the LABEL ?????):
Because when the label property is empty, the name is shown. We can think of it as a sort of inheritance, in which the name is the parent of the label. This overriding allows us the freedom to have names with mnemonic or programmatic value while still having a user-friendly displayed label, or to use one property for both reference and display.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10433
Joined: Fri Feb 19, 2010 10:17 am

Re: roundRadius as a property of buttons

Post by richmond62 »

That makes sense.

But when I have a graphic "FAKEBTN" and type this
into the Message box:

set the label of graphic "FAKEBTN" to "HAPPY"

it is the LABEL and not the NAME that is changed; the NAME is still "FAKEBTN",
but when the "show name" checkbox in the properties palette is checked it is
the label that shows up and not the name.
malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Re: roundRadius as a property of buttons

Post by malte »

But the same goes for buttons, so it is consistent. The difference is that the inspector does not expose the showName property for graphics (something that really miffs me from time to time. Why not find a way to have all the properties that are available for a control in the inspector?)

Best,

Malte
Post Reply