Do script-only stacks support "chained" behaviors?

Mike Kerner MikeKerner at roadrunner.com
Sat Jan 20 18:52:31 EST 2018


I believe they do, because I think Trevor is doing this with Levure.

On Sat, Jan 20, 2018 at 5:51 PM, Geoff Canyon via use-livecode <
use-livecode at lists.runrev.com> wrote:

> This page http://livecode.wikia.com/wiki/Behavior describes "chained"
> behaviors, saying that button 1 can have button 2 as its behavior, and if
> button 2 has button 3 as *its* behavior, then button 1 will have access to
> the handlers in both button 2 and button 3.
>
> This seems to work in LC 8.1.8, although chained behaviors seem to be
> somewhat brittle -- I'm seeing that sometimes closing and opening a stack
> causes button 1 in the above example to inherit from button 2, but not from
> button 3.
>
> SO: is there a way to support this for script-only stacks? As far as I
> know, script-only stacks only support defining the name and script of the
> stack, and no properties at all, i.e. no ability to set a behavior for the
> script-only stack. So in the above example, button 3 could be replaced by a
> script-only stack, but button 2 could not (without losing the inheritance
> from button 3).
>
> Is that correct?
>
> gc
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list