Is it possible to make expandable lists?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
uhbbus
Posts: 2
Joined: Wed Feb 05, 2014 7:39 am

Is it possible to make expandable lists?

Post by uhbbus » Wed Feb 05, 2014 7:46 am

I'm wondering if livecode is able to handle two different list functions. The first one would be where someone clicks on an item in a list and another list opens with clickable items, and the second one would be where someone clicks on an item in a list and then the list expands, showing the content beneath.

For example, let's say I have a music database. I want the user to be able to click through from a list of music categories, then to a list of musicians in the category, then when the click on the musician's name, they would get a short blurb or bio. The format is: List 1 --> List 2 --> Expanded items

How would you implement the "list 1 --> list 2" part and how would you do the "list 2 --> expanded items" part?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Is it possible to make expandable lists?

Post by Simon » Wed Feb 05, 2014 8:24 am

Hi uhbbus,
Welcome to the forums :)

Is this the sort of thing you are looking for?
http://forums.runrev.com/phpBB2/viewtop ... 399#p78436

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Is it possible to make expandable lists?

Post by MaxV » Wed Feb 05, 2014 12:53 pm

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Is it possible to make expandable lists?

Post by dunbarx » Wed Feb 05, 2014 3:34 pm

Hi.

Lots of ways around this, some fancy. But is what you need possible with a simple pulldown menu, one that has submenus in it? Try placing this in a pulldown and see if it sort of does what you need:

Choice1/|1
(tab) Choice2/|2
(tab) choice2a/|3
choice3/|4
Choice4/|5
(tab) Choice5/|6
Choice6/|7

Craig Newman

EDIT: I added the "(tab)" when I realized that what I copied from an actual pulldown contents did not format in my post. Not sure why this is so, but those tabs are required to invoke submenus. Anyway, see section "7.13.3" of the user guide for this info.

uhbbus
Posts: 2
Joined: Wed Feb 05, 2014 7:39 am

Re: Is it possible to make expandable lists?

Post by uhbbus » Wed Feb 05, 2014 6:11 pm

Nice! That's definitely what I'm looking for. It seems like the "List 1 --> List 2" transition is very straightforward, so I should have no problem with that. Thanks everyone!

Post Reply