Me and target of script widgets

Mike Kerner MikeKerner at roadrunner.com
Mon Oct 23 09:09:39 EDT 2023


also brutal answer:
documentation needs to be not just extended, but written for the property
inspector and property editor, or you are going to be spinning your wheels
trying to figure out that thing, too.
this same issue has made writing lcb widgets so exceptionally painful that
i've stopped wasting my time.
the answer from the mothership has been "if you have some specific
question, ask," which, of course leads to a slew of questions, which then
go mostly or entirely unanswered.

On Sun, Oct 22, 2023 at 6:01 AM Alex Tweedly via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Brutal answer :-)
>
> Script widgets aren't ready for release yet. They have (effectivtely) no
> documentation, no examples, no lessons.
>
> Unless you have a desparate need to do it now, I'd suggest waiting until
> they are somewhere near ready.
>
> Alex.
>
> On 22/10/2023 10:41, David Bovill via use-livecode wrote:
> > Having my first go at script widgets. It appears that there is either an
> > issue (or it is a feature) with script widgets and "me"?
> >
> > A handler like this:
> >
> > *on* mouseUp
> >
> > *## All references are to "inner" controls (ie the target) and not the
> > group*
> >
> > *put* the short id of me into shortID
> >
> > *put* the long id of the target into sName
> >
> > *put* the long id of me into myID
> >
> > *## Have to be explicit with messages*
> >
> > *-- dispatch "menu_AskEdit" to me -- or the target does not work*
> >
> > *dispatch* "menu_AskEdit" to this card with myID,shortID
> >
> > *end* mouseUp
> >
> > When inside a script only widget shows that would normally pass the long
> id
> > of the control clicked on within the group (script widget) with myID and
> > the short ID of the group (script widget) itself in shortID. However both
> > the target and me refer to the control and not the group / script widget.
> > It seems there is no easy way to find out a reference to "me" in a
> > script widget?
> >
> > I've a lot of scripts that use "me" in behaviors for potential script
> > widgets - so looking for a short term and long term solution for this?
> > _______________________________________________
> > 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