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

Example of dragging and dropping objects between groups

Post by micmac »

Hi there

Here is a stack that shows a way to DaD objects between groups
DaD in Groups.zip
(2.01 KiB) Downloaded 453 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] »

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 »

I agree, very nicely done.
Image
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Example of dragging and dropping objects between groups

Post by jmburnod »

Work fine here
Thanks for sharing
Jean-Marc
https://alternatic.ch
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Example of dragging and dropping objects between groups

Post by Klaus »

Pretty cool!

The first example where I see relayergroupedcontrols "in action"
and it definitively makes sense now to me! :D
micmac
Posts: 57
Joined: Mon May 30, 2011 9:00 am

Re: Example of dragging and dropping objects between groups

Post by micmac »

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 »

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.
Delete button ... YES!
Delete button ... YES!
Darn, too late to let this one go :/
Darn, too late to let this one go :/
Image
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Re: Example of dragging and dropping objects between groups

Post by SparkOut »

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 »

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