On the contrary, I want each instance of the group to be exactly the same. I’m not seeing that when I place a group—it now seems to be a new object.
Peter > On Apr 24, 2020, at 12:51 PM, dunbarx--- via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Peter. > If you have a stack with one card, create a group, and set the > backGroundBehavior of the group, then any new card you create will > automatically contain a copy of the group. > If you already have a stack with multiple cards, and create a group > somewhere, then if you want to copy it to other cards it to be done with the > "place" command. > You can always add or delete groups with LC gadgetry. > What you really asked, though, was whether the same group that appears on > multiple cards can each have unique scripts based on the particular instance > of any of them. I am not sure that group scripts can be so compartmentalized. > That is why I invited others to chime in. The workaround I mentioned is just > that, a workaround, unless some combination of properties will allow the > "same" group to hold its own unique script. > Craig > > > -----Original Message----- > From: Peter Bogdanoff via use-livecode <use-livecode@lists.runrev.com> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Cc: Peter Bogdanoff <bogdan...@me.com> > Sent: Fri, Apr 24, 2020 3:22 pm > Subject: Re: Groups placed on cards > > Thanks Craig, > >> On Apr 24, 2020, at 12:14 PM, dunbarx--- via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >> Hi. >> You can certainly create a group and set its backgroundbehjavior, then >> "place" it on any or all existing cards. This assumes that the group comes >> after the multi-card stack. > > “...comes after the multi-card stack” Do you mean have the group on its own > card, then place it elsewhere after that? > > >> Then any changes to the physical structure of your group will appear in all >> instances. >> But I am not sure how you would separate the scripts of such a group. Others >> may know better. >> You can always, however, tailor the group script to detect the card it is >> on, and execute only what is pertinent to that card. In the group script: >> on mouseUp switch the number of this cd case 1 answer random(999) >> break case 2 answer any item of "cat, dog,42" break end >> switchend mouseUp >> Craig >> >> >> -----Original Message----- >> From: Peter Bogdanoff via use-livecode <use-livecode@lists.runrev.com> >> To: How to use LiveCode <use-livecode@lists.runrev.com> >> Cc: Peter Bogdanoff <bogdan...@me.com> >> Sent: Fri, Apr 24, 2020 2:07 pm >> Subject: Groups placed on cards >> >> Hi, >> >> I have a stack with multiple cards (not part of a background) and I want to >> place a group on each card—the same group--AND be able to edit a single >> group script. And ideally, I would be able to configure as needed the >> controls of all instances of the group from a single location. >> >> For example, I have a glossary in a separate stack in another window, but >> now want to incorporate that stack to display as a pop-down in the main >> stack window on each (non-background) card. >> >> In testing, I’m seeing each placement of the group now as a new object. >> >> This is for both Mac and Windows. >> >> What would be my options to manage this? >> >> Thanks, >> >> Peter Bogdanoff >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode