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