Example of dragging and dropping objects between groups

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
micmac
Posts: 49
Joined: Mon May 30, 2011 9:00 am

Example of dragging and dropping objects between groups

Post by micmac » Thu Apr 18, 2019 9:24 am

Hi there

Here is a stack that shows a way to DaD objects between groups
DaD in Groups.zip
(2.01 KiB) Downloaded 352 times
Mic

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Example of dragging and dropping objects between groups

Post by [-hh] » Sat Apr 20, 2019 2:35 pm

This is a fine solution!
shiftLock happens

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Example of dragging and dropping objects between groups

Post by bogs » Sat Apr 20, 2019 4:03 pm

I agree, very nicely done.
Image

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Example of dragging and dropping objects between groups

Post by jmburnod » Sat Apr 20, 2019 6:48 pm

Work fine here
Thanks for sharing
Jean-Marc
https://alternatic.ch

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Example of dragging and dropping objects between groups

Post by Klaus » Sat Apr 20, 2019 6:58 pm

Pretty cool!

The first example where I see relayergroupedcontrols "in action"
and it definitively makes sense now to me! :D

micmac
Posts: 49
Joined: Mon May 30, 2011 9:00 am

Re: Example of dragging and dropping objects between groups

Post by micmac » Sun Apr 21, 2019 9:44 am

The...

else
set layer of me to top

...part of the mouseUp handler can be deleted, since it is already done in the mouseDown handler.

Mic

Edit: this might be wrong, but I can't delete the post
Mic

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Example of dragging and dropping objects between groups

Post by bogs » Sun Apr 21, 2019 10:50 am

No, I think past a certain amount of time, you can only edit the posts. I think the reasoning is, if you could do it at anytime, it would make certain threads disjointed.
Selection_001.png
Delete button ... YES!
Selection_002.png
Darn, too late to let this one go :/
Image

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Example of dragging and dropping objects between groups

Post by SparkOut » Sun Apr 21, 2019 4:21 pm

I don't know whether there's a time limit. If the post is not the last one in the thread any more, it can't be deleted (except by a forum admin). As soon as there's a post after yours, it's only editable, and will show the edit count. (If the post is the last in the thread, I think you can edit without it being marked as edited.)

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Example of dragging and dropping objects between groups

Post by bogs » Sun Apr 21, 2019 4:55 pm

Nope, looks like you nailed it SparkOut, if someone posts after you, thats what eliminates it. Makes me wonder, why micmac couldn't delete the post (should have been able to).
Image

Post Reply