Behaviors

Mike Kerner MikeKerner at roadrunner.com
Thu Aug 24 19:17:27 EDT 2023


polygrid
the api is similar, but they also have some nice additional features.
i have ripped all my dg's and replaced them with pg's.
now, if you're using custom templates, have a look at the pl - polyList.

On Thu, Aug 24, 2023 at 2:12 PM Bob Sneidar via use-livecode
<use-livecode at lists.runrev.com> wrote:
>
> Ah thanks for that. Yes, I knew how to nest behaviors for datagrids, but I never use the Project Browser because of issues I had many years ago. I may have another look.
>
> What is a “pg”? I make extensive use of Datagrid properties, and whatever I might replace them with needs to provide ALL their functionality.
>
> Bob S
>
>
> > On Aug 24, 2023, at 10:15 AM, Mike Kerner via use-livecode <use-livecode at lists.runrev.com> wrote:
> >
> > i'm pretty sure you can set a dg's behavior. then you would set the
> > behavior of that behavior to the button behavior (button id 1005 of
> > stack "revDataGridLibrary"), OR you can include THAT script,
> > separately, set that as the behavior, and modify it
> > (but, what you should really do is remove your dg's and replace them
> > with pg's, imho. they're much faster and more flexible and powerful).
> > the project browser has a button for each behavior in the chain of an
> > object. i'm pretty sure that levure baker's assistant does, too.
> >
> > On Thu, Aug 24, 2023 at 11:35 AM Bob Sneidar via use-livecode
> > <use-livecode at lists.runrev.com> wrote:
> >>
> >> There is also the Advanced button in the property inspector (looks like one large gear with two smaller ones) where you can type the behavior, and also has the target icon. Also, you shouldn’t have to do that every time. Once should be enough if you save the stack afterwards.
> >>
> >> I note that Datagrids have no way to set the behavior, since they depend on their default behavior. It was discussed long ago when nested behaviors became a thing, that there ought to be a way to edit a list of behaviors of an object. In fact it shouldn’t be that difficult to make a Behavior Browser widget of some sort. Hmmm...
> >>
> >> Bob S
> >>
> >>
> >>> On Aug 23, 2023, at 5:00 PM, Dar Scott via use-livecode <use-livecode at lists.runrev.com> wrote:
> >>>
> >>> I, too, have discovered the target icon to the right of the behavior object field in the property inspector. Alas, using that that I see only buttons on the current card (and stacks). I don’t see a way to navigate to a different card and select a button there. I might have missed it. — Dar
> >>>
> >>>> On Aug 22, 2023, at 1:05 PM, Mike Kerner via use-livecode <use-livecode at lists.runrev.com> wrote:
> >>>>
> >>>> you probably know this: in the property inspector, there's a panel for
> >>>> behavior, so you can just select the behavior from a menu button,
> >>>> without having to type it
> >>>>
> >>>> On Tue, Aug 22, 2023 at 1:37 PM Dar Scott via use-livecode
> >>>> <use-livecode at lists.runrev.com> wrote:
> >>>>>
> >>>>> 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
> >>>>>>
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> 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."
> >>>>
> >>>> _______________________________________________
> >>>> 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
> >>
> >> _______________________________________________
> >> 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."
> >
> > _______________________________________________
> > 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



-- 
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