Page 1 of 1
Working with a 'group'
Posted: Fri Mar 14, 2008 1:54 am
by Tom
How do I add a new object to an EXISTING group (and therefore still keep the script that went with the existing group)?
Tom
Posted: Fri Mar 14, 2008 2:39 am
by malte
Do you want to dynamically create an object by script or use the toolbar?
If the former:
create button "myButton" in group "myGroup"
if the latter:
make sure select grouped is active, select the group, click edit group
Hope that helps,
Malte
Posted: Fri Mar 14, 2008 2:56 am
by Tom
I want to use the toolbar...
Malte, still confused.
Let's say I have 3 buttons, A, B and C, all located in group 1024.
I decide I want to add button D to group 1024.
You said to select the group (by clicking on one of the 3 buttons), then select 'edit group'. That enables me to edit any member of the group. But I still don't know how to add, in this example, button D to the group without create a new group. (When I create a new group, it becomes a subgroup of 1024)
The workaround is to copy the script from group 1024, ungroup it, select all the objects that I want in the new group (A, B, C, AND D in this example), create a new group and then paste the script into the new group... it's a workaround, but klugey.
Tom
Posted: Fri Mar 14, 2008 7:28 am
by malte
while you are in group edit mode, simply drag another button over from the toolbar.
Hth,
Malte
Adding to a group...
Posted: Sat Mar 15, 2008 1:46 am
by bjb007
But if it's an existing button?
I asked the same question under
"Adding to a Group" subject below.
Posted: Sat Mar 15, 2008 5:45 am
by mcgrath3
copy [object [to {card | group | stack} ]]
copy button "Existing Button" to group "Group Name Here"
delete button "Existing Button"