Re: Groups placed on cards
> Le 25 avr. 2020 à 02:22, Peter Bogdanoff a écrit : > > In testing with a new stack, I see that what I am asking for actually does > happen. > The various placements of the group do have the same ID and configuration. > So, I’ll work with my stack to make it happen that way. Hi Peter, This happened to me a couple of years ago which an old stack being updated to new LC format I've lost all those standard group behaviour... I deleted them from all cards and redo. Unfortunately, don't remember the full details. Good luck, Thierry ___ 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
Re: Groups placed on cards
Peter. I am intrigued that you have a particular stack where this (standard) behavior does not happen. Can you change the group script at each instance? Can you change the locs of the controls that comprise it? That sort of thing. Such a stack might be of real interest to the team. Craig -Original Message- From: Peter Bogdanoff via use-livecode To: How to use LiveCode Cc: Peter Bogdanoff Sent: Fri, Apr 24, 2020 8:22 pm Subject: Re: Groups placed on cards In testing with a new stack, I see that what I am asking for actually does happen. The various placements of the group do have the same ID and configuration. So, I’ll work with my stack to make it happen that way. Thanks all for your help! Peter > On Apr 24, 2020, at 1:43 PM, Brian Milby via use-livecode > wrote: > > Is the group getting a new object ID? With the place command it should not > and you only really have one group. It will appear on each card that it is > placed on. You do not need to select background behavior, you just need to > make the group shared. > > Thanks, > Brian > On Apr 24, 2020, 4:01 PM -0400, Peter Bogdanoff via use-livecode > , wrote: >> 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 >>> 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 >>> To: How to use LiveCode >>> Cc: Peter Bogdanoff >>> 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 >>>> 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 >>>> To: How to use LiveCode >>>> Cc: Peter Bogdanoff >>>> 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 t
Re: Groups placed on cards
In testing with a new stack, I see that what I am asking for actually does happen. The various placements of the group do have the same ID and configuration. So, I’ll work with my stack to make it happen that way. Thanks all for your help! Peter > On Apr 24, 2020, at 1:43 PM, Brian Milby via use-livecode > wrote: > > Is the group getting a new object ID? With the place command it should not > and you only really have one group. It will appear on each card that it is > placed on. You do not need to select background behavior, you just need to > make the group shared. > > Thanks, > Brian > On Apr 24, 2020, 4:01 PM -0400, Peter Bogdanoff via use-livecode > , wrote: >> 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 >>> 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 >>> To: How to use LiveCode >>> Cc: Peter Bogdanoff >>> 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 >>>> 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 >>>> To: How to use LiveCode >>>> Cc: Peter Bogdanoff >>>> 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 >>>> _
Re: Groups placed on cards
Is the group getting a new object ID? With the place command it should not and you only really have one group. It will appear on each card that it is placed on. You do not need to select background behavior, you just need to make the group shared. Thanks, Brian On Apr 24, 2020, 4:01 PM -0400, Peter Bogdanoff via use-livecode , wrote: > 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 > > 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 > > To: How to use LiveCode > > Cc: Peter Bogdanoff > > 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 > > > 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 > > > To: How to use LiveCode > > > Cc: Peter Bogdanoff > > > 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.ru
Re: Groups placed on cards
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 > 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 > To: How to use LiveCode > Cc: Peter Bogdanoff > 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 >> 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 cdcase 1 answer random(999) >>breakcase 2 answer any item of "cat, dog,42" break end >> switchend mouseUp >> Craig >> >> >> -Original Message- >> From: Peter Bogdanoff via use-livecode >> To: How to use LiveCode >> Cc: Peter Bogdanoff >> 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
Re: Groups placed on cards
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 To: How to use LiveCode Cc: Peter Bogdanoff 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 > 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 > To: How to use LiveCode > Cc: Peter Bogdanoff > 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
Re: Groups placed on cards
Thanks Craig, > On Apr 24, 2020, at 12:14 PM, dunbarx--- via use-livecode > 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 cdcase 1 answer random(999) > breakcase 2 answer any item of "cat, dog,42" break end > switchend mouseUp > Craig > > > -Original Message- > From: Peter Bogdanoff via use-livecode > To: How to use LiveCode > Cc: Peter Bogdanoff > 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
Re: Groups placed on cards
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. 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 To: How to use LiveCode Cc: Peter Bogdanoff 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