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:
roundRadius as a property of buttons
Moderator: Klaus
-
- Livecode Opensource Backer
- Posts: 10081
- Joined: Fri Feb 19, 2010 10:17 am
-
- Livecode Opensource Backer
- Posts: 10081
- Joined: Fri Feb 19, 2010 10:17 am
Re: roundRadius as a property of buttons
To complete the illusion you need to set the label of the graphic via the Message Palette:
then set the button's NAME to visible (why not the LABEL ?????):
and "Bob's yer uncle":
then set the button's NAME to visible (why not the LABEL ?????):
and "Bob's yer uncle":
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: roundRadius as a property of buttons
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.richmond62 wrote:then set the button's NAME to visible (why not the LABEL ?????):
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 10081
- Joined: Fri Feb 19, 2010 10:17 am
Re: roundRadius as a property of buttons
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.
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.
Re: roundRadius as a property of buttons
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
Best,
Malte