MouseDown sent to button in group, but MouseUp sent to card

Kaveh Bazargan kaveh at rivervalleytechnologies.com
Thu Aug 3 08:17:54 EDT 2017


I feel a bit dumb. yes, there was an empty mouseup handler in the buttons.
So that is fixed.

Now for mousewithin...

Having mousewithin in the stack script does not work unless I put:

on mousewithin
  pass mousewithin
end mousewithin

in the button.

What is the explanation for that?

On 3 August 2017 at 12:55, Randy Hengst via use-livecode <
use-livecode at lists.runrev.com> wrote:

> I’d start by double-checking that there is a mouseUp handler in the
> button. If there isn’t, then the mouseUp will move to the group… if no
> mouseUp in the group it will move to the card.
>
> be well,
> randy
>
> > On Aug 3, 2017, at 5:10 AM, Kaveh Bazargan via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> >
> > I have buttons in a group. When I click any button, the mousedown message
> > is received by the button correctly but mouseup is received by card.
> Also I
> > believe mousewithin.
> >
> > How can I get the button to be the target for all?
> >
> > My script is in the stack
> >
> > Thanks.
> >
> >
> >
> > --
> > Kaveh Bazargan
> > Director
> > River Valley Technologies
> > @kaveh1000
> > +44 7771 824 111
> > www.rivervalleytechnologies.com
> > _______________________________________________
> > 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




-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.com



More information about the use-livecode mailing list