Behaviors

Dar Scott dsc at swcp.com
Tue Aug 22 13:36:36 EDT 2023


I figured out how to do it in the IDE. I needed to include “of stack” in the reference. — Dar

> On Aug 22, 2023, at 11:09 AM, Alex Tweedly via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Not sure how it works in the IDE - seems a problem because it only presents button in the current stack.
> 
> So I do it all in preOpen... scripts, doing something like
> 
>> set the behavior of fld "F" of grp tmpName to the long id of button "RichTextFieldBehaviour" of \
>>          card "Behaviours" of stack "/Users/alextweedly/Dropbox/My Livecode/Libraries/richText.livecode"
> 
> Alex.
> 
> On 22/08/2023 17:57, Dar Scott via use-livecode wrote:
>> I am misremembering things about Behaviors.
>> 
>> I have a card with my behavior buttons, but I can’t seem to point to buttons on that card. Maybe, I’m remembering what I did long ago with front scripts.
>> 
>> I suppose I can use substacks, but I’m worried that the stacks would be in the message path. Is there a way to keep the stack out of the message path?
>> _______________________________________________
>> 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
> 
> _______________________________________________
> 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
> 




More information about the use-livecode mailing list