Groovy SVG buttons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- Livecode Opensource Backer
- Posts: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Groovy SVG buttons
Having messed around with that tutorial I started thinking . . .
. . . dangerous, of course . . .
. . . and felt an urge to either ask a question and/or criticise LiveCode in a majorish way . . .
. . . dangerous, of course . . .
LC comes with a tool palette containing about 7 or so basic objects that can be pulled, pushed and tweaked via the properties palettes.
Several years ago it was stated that 'most' of RR/LC was written in itself . . .
So, . . . here it comes . . . is there a way [no, I don't mean widgets] in which one can make one's own objects with properties palettes and so on?
. . . dangerous, of course . . .
. . . and felt an urge to either ask a question and/or criticise LiveCode in a majorish way . . .
. . . dangerous, of course . . .
LC comes with a tool palette containing about 7 or so basic objects that can be pulled, pushed and tweaked via the properties palettes.
Several years ago it was stated that 'most' of RR/LC was written in itself . . .
So, . . . here it comes . . . is there a way [no, I don't mean widgets] in which one can make one's own objects with properties palettes and so on?
-
- VIP Livecode Opensource Backer
- Posts: 9850
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Groovy SVG buttons
Why not? Palettes have been an xTalk staple since '87, along with the ability to get and set properties from script.
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
-
- VIP Livecode Opensource Backer
- Posts: 9731
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Groovy SVG buttons
Richard.
I think what Richmond is asking about is a widget made with LCS, not a palette stack with gadgets on it floating around the card.
I think he is hoping to be able to do this without having to learn LCB.
Richmond? If so, then I am excited about LCS widgets, which are supposed to be just around the corner.
Craig
I think what Richmond is asking about is a widget made with LCS, not a palette stack with gadgets on it floating around the card.
I think he is hoping to be able to do this without having to learn LCB.
Richmond? If so, then I am excited about LCS widgets, which are supposed to be just around the corner.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9850
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Groovy SVG buttons
Objects have properties, which can be read and written. Widgets are a class of object. Inspectors are tools to let the user view and edit those properties
I understand the question. I don't understand how it's a question.
I understand the question. I don't understand how it's a question.
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: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Groovy SVG buttons
No: I am not asking about widgets of any shape or form.
I am asking whether it is possible to make new objects in LiveCode.
I am asking whether it is possible to make new objects in LiveCode.
-
- VIP Livecode Opensource Backer
- Posts: 9850
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Groovy SVG buttons
Define "object".
If you mean custom controls, yes, the DataGrid is a powerful example, but simpler cloned groups driven by a common parent script is a common development pattern.
If you mean custom controls, yes, the DataGrid is a powerful example, but simpler cloned groups driven by a common parent script is a common development pattern.
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: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Groovy SVG buttons
At the risk of being dead goofy: these are what I mean by objects (being well aware that at least one of them, the DataGrid, is
a composite object):
-
a composite object):
-
-
- VIP Livecode Opensource Backer
- Posts: 9731
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Groovy SVG buttons
Richmond is asking for a new object class, like a button or a field.
So, what is an example of a new such thing?
Craig
So, what is an example of a new such thing?
Craig
-
- Livecode Opensource Backer
- Posts: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Groovy SVG buttons
Or, a 'new' button that is NOT a modified version of the existing button but a new beast.
When I was 4 years old a great-aunt of mine sent me a bix of LEGO (1966) . . . being an intelligent woman, having sent me blocks and plates that year, the following one she sent me wheels and windows . . . knowing that after a year I would have exhausted possibilities with blocks and plates.
When I was 4 years old a great-aunt of mine sent me a bix of LEGO (1966) . . . being an intelligent woman, having sent me blocks and plates that year, the following one she sent me wheels and windows . . . knowing that after a year I would have exhausted possibilities with blocks and plates.
-
- VIP Livecode Opensource Backer
- Posts: 9731
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Groovy SVG buttons
Richmond.
What is a "new" button?
A button is already an established object class. You can pretty much make a button do whatever you want, and look however you want. You can make a "button" out of a graphic or an image.
What is a "new" button ???
Craig
What is a "new" button?
A button is already an established object class. You can pretty much make a button do whatever you want, and look however you want. You can make a "button" out of a graphic or an image.
What is a "new" button ???
Craig
-
- Livecode Opensource Backer
- Posts: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Groovy SVG buttons
A 'new' button is something one can drag and drop from a tools palette & then access ALL its properties from a single props palette (rather than, say, mess around with props palettes of various components inwith a group).
-
- VIP Livecode Opensource Backer
- Posts: 9731
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Groovy SVG buttons
Richmond.
Ah. It is a property inspector gadget you want, not a new object class. Something like the DataGrid property inspector?
So if you make a group of controls, you want a tool to construct such an inspector? How did Trevor deVore construct the inspector for the DG? Have you asked him?
I wonder if Xavvi can build such a thing?
Craig
Ah. It is a property inspector gadget you want, not a new object class. Something like the DataGrid property inspector?
So if you make a group of controls, you want a tool to construct such an inspector? How did Trevor deVore construct the inspector for the DG? Have you asked him?
I wonder if Xavvi can build such a thing?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9731
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Groovy SVG buttons
Richmond.
A group already has a "standard" inspector upon creation. Widgets each have their own.
I assume Trevor made a custom stack that looked and felt like any standard LC inspector. He rolled his own, in other words, just like you will have to do at least for the near future.
Craig
A group already has a "standard" inspector upon creation. Widgets each have their own.
I assume Trevor made a custom stack that looked and felt like any standard LC inspector. He rolled his own, in other words, just like you will have to do at least for the near future.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9850
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Groovy SVG buttons
The LiveCode Inspector shows only the most commonly used properties.richmond62 wrote: ↑Fri May 19, 2023 2:47 pmA 'new' button is something one can drag and drop from a tools palette & then access ALL its properties from a single props palette (rather than, say, mess around with props palettes of various components inwith a group).
If you want an editor for ALL properties a property sheet, such as Toolbook and others have, provides a list layout better suited for that then a hand-drawn layout of controls in an inspector.
I believe the property sheet I made for LC is available in LiveNet.
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