create widget
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
create widget
Hi, Is there a way to create a widget? in my case, I want to create a switch button, or at least change the one already existing in livecode, is it possible?
Thanks
Thanks
Samuele.
Re: create widget
There are lessons on this showing you how to use livecode builder… just search the website for these. But it’s a lot to learn and the language is not what you know…
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: create widget
https://livecode.com/topic/extending-livecode-guide/
Personally I have never looked at that at all as I do not need it for any of my requirements.
Personally I have never looked at that at all as I do not need it for any of my requirements.
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: create widget
Samuele.
What sort of switch? I bet it can easily be done in LC script.
Craig
What sort of switch? I bet it can easily be done in LC script.
Craig
Re: create widget
Hi, been studying I just want it to look a bit different from the one given for android
Samuele.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: create widget
OK, OK . . .
As LCB is quite a bit more difficult than LiveCode itself why don't you do this:
1. Draw a picture of what you want and post it here.
2. Explain exactly what you want your 'switcher' button to do.
Then we can see if it is possible to work something out in LiveCode and not have to worry about LCB at all.
Is THIS what you mean?
- -
Or this?
- - -
Oh, and while I'm "here" could someone tell me what the supposed functionality of the second one is meant to be?
As LCB is quite a bit more difficult than LiveCode itself why don't you do this:
1. Draw a picture of what you want and post it here.
2. Explain exactly what you want your 'switcher' button to do.
Then we can see if it is possible to work something out in LiveCode and not have to worry about LCB at all.
Is THIS what you mean?
- -
Or this?
- - -
Oh, and while I'm "here" could someone tell me what the supposed functionality of the second one is meant to be?
Re: create widget
the ones you posted work only for apple devices, they're more good looking than the android ones...
Samuele.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: create widget
I have a feeling that it should be amazingly easy to make those in LiveCode.
- -
- -
- Attachments
-
- Switcher.livecode.zip
- Stack
- (64.78 KiB) Downloaded 51 times
-
- VIP Livecode Opensource Backer
- Posts: 135
- Joined: Tue Feb 23, 2010 10:53 pm
- Location: Saint Louis, Missouri USA
Re: create widget
Richmond62: Thanks for posting your Switcher stack.
Just for fun I put together a switch control consisting of simple LC graphics grouped together.
By using LC graphics, I was able to change colors, inner glow, add labels ("ON" and "OFF"), move the switch from side to side, etc.
The script is contained in the group so the user can click anywhere in the group to toggle the switch.
Here is my simple stack for your use, modifications or enhancements. I haven't tried to write a resize script.
This was an interesting project.
Enjoy,
Bob
Just for fun I put together a switch control consisting of simple LC graphics grouped together.
By using LC graphics, I was able to change colors, inner glow, add labels ("ON" and "OFF"), move the switch from side to side, etc.
The script is contained in the group so the user can click anywhere in the group to toggle the switch.
Here is my simple stack for your use, modifications or enhancements. I haven't tried to write a resize script.
This was an interesting project.
Enjoy,
Bob
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: create widget
Well, Bob, your thing is far more sophisticated than my Q-and-D graphic with two backGroundPatterns.
Mind you, mine involved all of 5 minutes work.
The point (which I have tried to make several times) is that, with LiveCode at least, having to learn LCB
should be redundant as 99% of things should be doable in LiveCode itself.
And, another advantage about doing things in LiveCode instead of LCB is that those things are more
easily modified by other LiveCode users.
Mind you, mine involved all of 5 minutes work.
The point (which I have tried to make several times) is that, with LiveCode at least, having to learn LCB
should be redundant as 99% of things should be doable in LiveCode itself.
And, another advantage about doing things in LiveCode instead of LCB is that those things are more
easily modified by other LiveCode users.
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: create widget
Here is an old stack showing switchbuttons and sliders which can be heavily (maybe too much so) configured.
Kind regards
Bernd
Kind regards
Bernd
-
- VIP Livecode Opensource Backer
- Posts: 135
- Joined: Tue Feb 23, 2010 10:53 pm
- Location: Saint Louis, Missouri USA
Re: create widget
Bernd:
Your stack is BRILLIANT!
Thank you for posting it.
Bob
Your stack is BRILLIANT!
Thank you for posting it.
Bob