group all objects and fields

malte.brill at t-online.de malte.brill at t-online.de
Sat Jan 22 16:20:06 EST 2005


Hi Bob,

>I want a button on one stack that can group all objects on another
stack.
>I cannot see the way to "select all" and group via a command.

This is off the top of my head but should work:

repeat with i=1 to the number of controls of card 1 of stack
"yourStack"
  put the long ID of control i of cd 1 of  stack
"yourStack"&&"and"&space after theControls
end repeat
delete word -1 of theControls
put "group"&&the controls into toDoList
do toDoList
set the backgroundbehavior of the last group of cd 1 stack "yourStack"
to true

Best,

Malte


More information about the use-livecode mailing list