Hi all,
Grp 1
Grp 2
Grp 3
Grp 4
Imagine these 4 grps are placed vertically on a card inside a scroller. What will be the best way that when a user deletes grp 1, grp 2,3,4 will move up. Delete grp 2, grp 3,4 will move up.
Assuming all the grp contains img, flds and widget.
Thanks !
Deleting contents inside a scroller and contents shift accordingly [Solved]
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Deleting contents inside a scroller and contents shift accordingly [Solved]
Last edited by EddieLee on Fri Sep 11, 2020 3:16 pm, edited 2 times in total.
Eddie
Re: Deleting contents inside a scroller and contents shift accordingly
Use a field with List behaviour?
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Deleting contents inside a scroller and contents shift accordingly
Hi.
Not sure how this goes down in mobile, since I do not develop for it, but back in good ol' LC (pseudo):
Craig
Not sure how this goes down in mobile, since I do not develop for it, but back in good ol' LC (pseudo):
Code: Select all
on mouseUp
repeat with y = 4 down to 2
set the top of grp y to the top of grp (y-1)
end repeat
delete grp 1
end mouseUp