group a single object?
Geoff Canyon Rev
gcanyon+rev at gmail.com
Tue May 11 01:41:36 EDT 2010
I think this works reasonably well:
put the layer of btn "target" into L
set the relayerGroupedControls to true
create group "container"
put the long id of it into C
set the layer of btn "target" to the layer of C
set the layer of C to L
The business with long id is to make sure there isn't another group
called "container." When I first wrote this I just referred to it by
name, and then of course I tried it twice in a row and it failed the
second time. This version seems to work fine, ever-more-deeply nesting
button "target" into groups called container.
More information about the use-livecode
mailing list