group all objects and fields

malte.brill at malte.brill at
Sat Jan 22 16:20:06 EST 2005

Hi Bob,

>I want a button on one stack that can group all objects on another
>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
  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



More information about the Use-livecode mailing list