Accordion for LC

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Accordion for LC

Post by bn »

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.

Accordion.jpg

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 1261 times
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Accordion for LC

Post by dunbarx »

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
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Accordion for LC

Post by bn »

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 1193 times
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Accordion for LC

Post by Klaus »

I can open and use both versions with LC 10.0.0!
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Accordion for LC

Post by dunbarx »

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
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Accordion for LC

Post by richmond62 »

Works fine with LC 9.6.3 community.
Lance
Posts: 28
Joined: Sat Sep 05, 2020 2:36 pm

Re: Accordion for LC

Post by Lance »

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
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Accordion for LC

Post by dunbarx »

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
VIP Livecode Opensource Backer
Posts: 40
Joined: Sat Jan 15, 2011 10:57 am

Re: Accordion for LC

Post by Kangaroo SW »

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 :P

Thanks again,
Rolf
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Accordion for LC

Post by bn »

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
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Accordion for LC

Post by bn »

Hello,

An improved version of Accordion.

You can now reorder the tiles
MoveTiles.jpg
MoveTiles.jpg (32.15 KiB) Viewed 33599 times


And you can also edit text of Header and Body via a PopUp widget that it generated on the fly
PopUpII.jpg


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 1846 times
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Accordion for LC

Post by bn »

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 1269 times
Kangaroo SW
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 40
Joined: Sat Jan 15, 2011 10:57 am

Re: Accordion for LC

Post by Kangaroo SW »

Hello Bernd

I just Love it :D

Thanks for sharing !

Cheers
Rolf
okk
Posts: 182
Joined: Wed Feb 04, 2015 11:37 am

Re: Accordion for LC

Post by okk »

Thanks for providing it to the community! This is very useful. Best. Oliver
Post Reply