Re: Script Only Behaviors
On Sat, May 2, 2020 at 2:14 PM Ali Lloyd via use-livecode < use-livecode@lists.runrev.com> wrote: > It's also mentioned in the scriptOnly property and in the script only stack > entry in the glossary > I'm not sure how I missed that. I searched for "script only" in the dictionary and no results came up. I must have been filtering by LiveCode Builder. -- Trevor DeVore ScreenSteps - https://www.screensteps.com Levure App Framework for LiveCode - https://github.com/trevordevore/levure/ LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder ___ 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: Script Only Behaviors
On 5/2/20 12:13 PM, Ali Lloyd via use-livecode wrote: It's also mentioned in the scriptOnly property and in the script only stack entry in the glossary OK - I see documentationcache/9_6_0_dp_4_community/api.html has a reference under "script only stack". But it's hinted at obliquely in the scriptOnly section, which only says "If the stack has a stack behavior, the name of the behavior stack is also saved to the header line", which would imply to me that it's only after the fact. -- Mark Wieder ahsoftw...@gmail.com ___ 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: Script Only Behaviors
It's also mentioned in the scriptOnly property and in the script only stack entry in the glossary On Sat, 2 May 2020 at 18:48, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 5/2/20 7:44 AM, Trevor DeVore via use-livecode wrote: > > On Sat, May 2, 2020 at 8:36 AM Mark Wieder via use-livecode < > > use-livecode@lists.runrev.com> wrote: > > > >> On 5/2/20 12:06 AM, Trevor DeVore via use-livecode wrote: > >> > >>> script "My script-only stack" with behavior "A Stack Name" > >> > >> Nice! I didn't know that behavior syntax existed. Is that documented > >> somewhere? > >> > > > > The only place I could find it is in the 8.1 Release Notes: > > > > https://downloads.livecode.com/livecode/8_1_10/LiveCodeNotes-8_1_10.pdf > > > > Thanks, Trevor. It's unfortunate that there isn't a better way to > document these things so they don't fall through the cracks, but I'm not > sure where this would go in the docs. > > -- > Mark Wieder > ahsoftw...@gmail.com > > ___ > 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: Script Only Behaviors
On 5/2/20 7:44 AM, Trevor DeVore via use-livecode wrote: On Sat, May 2, 2020 at 8:36 AM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: On 5/2/20 12:06 AM, Trevor DeVore via use-livecode wrote: script "My script-only stack" with behavior "A Stack Name" Nice! I didn't know that behavior syntax existed. Is that documented somewhere? The only place I could find it is in the 8.1 Release Notes: https://downloads.livecode.com/livecode/8_1_10/LiveCodeNotes-8_1_10.pdf Thanks, Trevor. It's unfortunate that there isn't a better way to document these things so they don't fall through the cracks, but I'm not sure where this would go in the docs. -- Mark Wieder ahsoftw...@gmail.com ___ 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: Script Only Behaviors
On Sat, May 2, 2020 at 8:36 AM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 5/2/20 12:06 AM, Trevor DeVore via use-livecode wrote: > > > script "My script-only stack" with behavior "A Stack Name" > > Nice! I didn't know that behavior syntax existed. Is that documented > somewhere? > The only place I could find it is in the 8.1 Release Notes: https://downloads.livecode.com/livecode/8_1_10/LiveCodeNotes-8_1_10.pdf -- Trevor DeVore ScreenSteps - https://www.screensteps.com Levure App Framework for LiveCode - https://github.com/trevordevore/levure/ LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder ___ 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: Script Only Behaviors
On 5/2/20 12:06 AM, Trevor DeVore via use-livecode wrote: script "My script-only stack" with behavior "A Stack Name" Nice! I didn't know that behavior syntax existed. Is that documented somewhere? -- Mark Wieder ahsoftw...@gmail.com ___ 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: Script Only Behaviors
On Fri, May 1, 2020 at 7:51 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > > I’m gonna say that script only stacks cannot have behaviors eh? Reason is, > I’d like to move my nested data grid behavior to a script only stack, but > it occurs to me this might break the datagrid, since it’s next level > behavior is the old data grid behavior button (not sure why that’s still > there) then the actual script only datagrid library. > Hi Bob, In fact script-only stacks can have behaviors. There are two ways you can assign the behavior: 1) Define the behavior within the script-only stack itself. script "My script-only stack" with behavior "A Stack Name" Just make sure that the stack being assigned as the behavior is loaded into memory when you load the script-only stack. 2) After loading the script-only stack into memory set the behavior property. If you need to assign the behavior of the script-only stack to a button then use method #2. -- Trevor DeVore ScreenSteps - https://www.screensteps.com Levure App Framework for LiveCode - https://github.com/trevordevore/levure/ LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder ___ 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