Group functions

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Group functions

Post by shaosean »

The changes would be better off in the engine, using native controls, but until then, you could write what you need and not have to worry about it..
atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Re: Group functions

Post by atout66 »

You surely all of you know that already, but as a beginner I found that by using the <Project Browser>, I can move object by drag and drop from one group to an other.
That was my 2 cents :wink:

Kind regards, Jean-Paul.
Discovering LiveCode Community 6.5.2.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10433
Joined: Fri Feb 19, 2010 10:17 am

Re: Group functions

Post by richmond62 »

Gosh, it's 2019 . . .

. . . trying to shove an image into a group . . .
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Group functions

Post by [-hh] »

Not worth an own command:

Code: Select all

on mouseUp
  cut image "myImg"
  start editing background "myGroup"
  paste
  stop editing background "myGroup"
end mouseUp
or even shorter (by Jean-Marc, see above):

Code: Select all

on mouseUp
  put the long id of img "myImg" into lid
  copy image "myImg" to background "myGroup"
  delete lid
end mouseUp
For drag and drop between groups there is moreover (by Michael K.)
https://forums.livecode.com/viewtopic.p ... 58#p178858
shiftLock happens
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10433
Joined: Fri Feb 19, 2010 10:17 am

Re: Group functions

Post by richmond62 »

Copying a control into a group is NOT moving it, it is copying it.

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

Re: Group functions

Post by [-hh] »

After copying and then deleting the original it is "shoved into the group" ... is your pain (located wherever) now gone?
shiftLock happens
Klaus
Posts: 14327
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Group functions

Post by Klaus »

[-hh] wrote: Thu Jul 04, 2019 7:07 pmAfter copying and then deleting the original it is "shoved into the group" ... is your pain (located wherever) now gone?
Hardly! :D
Post Reply