Reorder group elements
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Reorder group elements
Hi all,
I have a group it contains another subgroup. Please see the below attached image. when I drag item1 below, all item inside item1 should be placed in current location, is it possible.
Thanks
Kevin
I have a group it contains another subgroup. Please see the below attached image. when I drag item1 below, all item inside item1 should be placed in current location, is it possible.
Thanks
Kevin
- Attachments
-
- drag.png (6.9 KiB) Viewed 6802 times
--
Thanks
Kevin
Thanks
Kevin
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Reorder group elements
Hi.
Not sure what you mean. Is each of the "items" listed its own group? It may just be that you have to set "the selectGroupedControls" to "true". Read about this in the dictionary, and experiment.
Or if I am not understanding, write back.
Craig Newman
Not sure what you mean. Is each of the "items" listed its own group? It may just be that you have to set "the selectGroupedControls" to "true". Read about this in the dictionary, and experiment.
Or if I am not understanding, write back.
Craig Newman
-
- Posts: 7
- Joined: Mon Jul 02, 2018 4:17 am
Re: Reorder group elements
I'm sure after three years Kevin, this has been solved. Any luck on a comprehensive solution? I'm working on this now for fun and just need to solve the scrolling issue.
Thanks,
E
Thanks,
E
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Reorder group elements
Look at the relayer command and see if that helps.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 7
- Joined: Mon Jul 02, 2018 4:17 am
Re: Reorder group elements
Thanks Jacque,
That’s great advice. I do use that command to reorder the list once an item is dropped into its new place. Of course this assumes the layers are supposed to be from top to bottom on the y-axis. Can’t think of a reason not to have it like that.
Anyway, the behavior is done and I’ll post a demo stack as soon as I clean it up if anyone is interested.
That’s great advice. I do use that command to reorder the list once an item is dropped into its new place. Of course this assumes the layers are supposed to be from top to bottom on the y-axis. Can’t think of a reason not to have it like that.
Anyway, the behavior is done and I’ll post a demo stack as soon as I clean it up if anyone is interested.
-
- Posts: 7
- Joined: Mon Jul 02, 2018 4:17 am
Re: Reorder group elements
Here's a demo of drag/drop to reorder a list of grouped items. It uses graphics as the list items for now, but should support any type of list item as well as mixed list items or different sizes.
Any feedback is welcome and if someone has solved this already, I'd love to see the code if available.
Any feedback is welcome and if someone has solved this already, I'd love to see the code if available.
- Attachments
-
- DragOrderList.livecode.zip
- (5.93 KiB) Downloaded 192 times
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Reorder group elements
Hi trinitylogics,
Thank you for sharing.
I noticed an issue when you drag an item to the end of the list.
For example if you drag item 1 to the end list it seems disappear but it comes just after item 11 with a reduced height. Best regards
Jean-Marc
(OSX 10.13, LC indy 9.0.0)
Thank you for sharing.
I noticed an issue when you drag an item to the end of the list.
For example if you drag item 1 to the end list it seems disappear but it comes just after item 11 with a reduced height. Best regards
Jean-Marc
(OSX 10.13, LC indy 9.0.0)
https://alternatic.ch
-
- Posts: 7
- Joined: Mon Jul 02, 2018 4:17 am
Re: Reorder group elements
Thanks Jean-Marc,
Found the problem.
Found the problem.
Re: Reorder group elements
Hi
Did anyone fix the bug mentioned in the next-last post
Mic
Did anyone fix the bug mentioned in the next-last post
Mic
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Reorder group elements
Sorry no idea
You maybe try to send a private message to trinitylogics
Best regards
Jean-Marc
You maybe try to send a private message to trinitylogics
Best regards
Jean-Marc
https://alternatic.ch
Re: Reorder group elements
I did, Jean-Marc, but have not had any reply.
This thread is his only share.
Looking at the code he looks like a pro.
Mic
This thread is his only share.
Looking at the code he looks like a pro.
Mic
Re: Reorder group elements
Hi
If it has interest for any of you, this is a horizontal version of the above stack by trinityLogics.
Mic
If it has interest for any of you, this is a horizontal version of the above stack by trinityLogics.
Mic