Script Only Behaviors
Trevor DeVore
lists at mangomultimedia.com
Sat May 2 03:06:33 EDT 2020
On Fri, May 1, 2020 at 7:51 PM Bob Sneidar via use-livecode <
use-livecode at 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
More information about the use-livecode
mailing list