"background" behavior a la HyperCard

Barry Levine themacguy at mac.com
Mon May 13 21:56:01 EDT 2002


I know this is covered in the electronic documentation but it is, 
*sigh*, somewhat vague. I'd appreciate if someone would comment on what 
appears below:

I want a series of objects (buttons and fields) to appear on every card 
in a stack (like objects in the background in HyperCard). In order to 
accomplish this, I do the following:

1. Create those buttons and fields on the first card.
2. Do any scripting of those objects as necessary.
3. Group those objects and note the group ID of that group.
4. Create a new card and "Place Group > group ID ####" from the Object 
menu.
	This places that group into the current card.
5. Create new cards and the group automatically appears on the new cards.

It looks like the group ID disappears from the "Place Group" submenu of 
the Objects menu once you've "Placed" the group on the current card. If 
I then create a new card, the "placed" group from the current card is 
automatically placed on the new card. Now I have the same behavior I 
would expect in HyperCard (where background objects get created along 
with a new card as long as I don't request a new background).

Additionally, I may edit the script of any of the grouped objects and 
the changes will be propagated throughout each card where the group 
appears (much like it would in HyperCard when editing the script of a 
"background" object).

Is my thinking straight about this?


Thanks,
Barry




More information about the use-livecode mailing list