Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
bn
- VIP Livecode Opensource Backer

- Posts: 4163
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Sat Nov 23, 2024 8:14 pm
Recently "StrongBow" wondered whether there is an Accordion for LC
and I thought it looked nice and pretty useful.
I realise that Stam did an Accordion but that works a little differently and used a datagrid adding a bit of complexity. (Look for it on Livecodeshare)
I decided to take a try and posting here a version that is a work in progress but I would like to ask for feed back on what is lacking/not working.
There is a question mark in the stack which shows a field explaining how to change text and some sliders and button to do some basic maintenance operations.
It was fun sliding texts in an out all day...
Kind regards
Bernd
-
Attachments
-
- bnAccordion_0.5.livecode.zip
- (10.56 KiB) Downloaded 577 times
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10305
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Sun Nov 24, 2024 5:52 pm
Bernd.
Downloaded, but could not get any action at all on the main group. Neither clicking, double-clicking, dragging did anything.
Craig
-
bn
- VIP Livecode Opensource Backer

- Posts: 4163
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Sun Nov 24, 2024 6:00 pm
Hi Craig,
the only thing that I can think of is that I saved above version as "Livecode" from LC 10.0.1 (rc2).
Here is a version saved as "Legacy 8.0"
Could you please try this one?
Kind regards
Bernd
-
Attachments
-
- bnAccordion_0.5 2.livecode.zip
- (10.53 KiB) Downloaded 548 times
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Sun Nov 24, 2024 6:03 pm
I can open and use both versions with LC 10.0.0!
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10305
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Sun Nov 24, 2024 11:33 pm
I am at home with 9.6.1 Community, Mac OS 10.15.7. I can use all the live text tools. They work fine. But the main accordion is not doing anything.The message watcher shows the usual, "mouseUp", etc.
I see no errors in the debugger through the main group "mouseUp" handler all the way to completion. I will try tomorrow with my licensed version.
Craig
-
richmond62
- Livecode Opensource Backer

- Posts: 10077
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Mon Nov 25, 2024 2:19 am
Works fine with LC 9.6.3 community.
-
Lance
- Posts: 28
- Joined: Sat Sep 05, 2020 2:36 pm
Post
by Lance » Mon Nov 25, 2024 2:38 pm
Hello Bernd, thanks for the sample stack, pretty neat and nice that you put all the extra controls. Very easy to see how it works. Worked great for me in ver 9.6.13.
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10305
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Mon Nov 25, 2024 3:26 pm
Bernd.
OK, works fine in my machine at my office. Cannot imagine what the story is at home, since I develop LC stuff there as well.
Craig
-
Kangaroo SW
- VIP Livecode Opensource Backer

- Posts: 40
- Joined: Sat Jan 15, 2011 10:57 am
Post
by Kangaroo SW » Tue Nov 26, 2024 8:18 am
Hello Bernd,
This is fantastic – thanks for sharing! It works great in HTML5.
I like the fact that the groups are self-contained, so after editing, they can be copied. This is very smart
Thanks again,
Rolf
-
bn
- VIP Livecode Opensource Backer

- Posts: 4163
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Tue Nov 26, 2024 3:31 pm
Hi Rolf,
I am glad you like the accordion.
Currently I am pondering how to change the text of the fields other than drag-drop or copy.
Kind regards
Bernd
-
bn
- VIP Livecode Opensource Backer

- Posts: 4163
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Wed Dec 11, 2024 9:03 pm
Hello,
An improved version of Accordion.
You can now reorder the tiles

- MoveTiles.jpg (32.15 KiB) Viewed 12443 times
And you can also edit text of Header and Body via a PopUp widget that it generated on the fly
Some performance increases for web deployment.
See Help and Accordion for more info.
Kind regards
Bernd
-
Attachments
-
- bnAccordion_0.5.4.livecode.zip
- (14.23 KiB) Downloaded 1222 times
-
bn
- VIP Livecode Opensource Backer

- Posts: 4163
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Sat Jan 11, 2025 12:59 pm
Hello,
A slightly improved version of Accordion (0.6.1): it is now all "flat" (in the sense of material design), code cleanup.
Recommended version.
Kind regards
Bernd
-
Attachments
-
- Accordion_0.6.1.livecode.zip
- (15.22 KiB) Downloaded 581 times
-
Kangaroo SW
- VIP Livecode Opensource Backer

- Posts: 40
- Joined: Sat Jan 15, 2011 10:57 am
Post
by Kangaroo SW » Wed Jan 15, 2025 8:42 am
Hello Bernd
I just Love it
Thanks for sharing !
Cheers
Rolf
-
okk
- Posts: 178
- Joined: Wed Feb 04, 2015 11:37 am
Post
by okk » Mon Jan 20, 2025 1:23 pm
Thanks for providing it to the community! This is very useful. Best. Oliver