send mouseup to control

Richmond Mathewson richmondmathewson at gmail.com
Wed May 24 19:56:58 CEST 2017


Replied with demo stack on the Forums: 
http://forums.livecode.com/viewtopic.php?f=9&t=29290

Richmond.

On 5/24/17 8:21 pm, Alejandro Tejada via use-livecode wrote:
> Hi All,
>
> Reading LiveCode Dictionary about the target and send,
> could not find an obvious way to get the name of a message
> sender without putting first this name in another container
> (a custom property, a field or a global variable).
>
> Why do I need to know which control send a message
> to another control?
>
> Because the handler in the control executes different code
> depending of which control sends it a mouseup handler.
>
> For now, I am using a mouseup button parameter that
> could be 1 or 2 or 3. If the control receive a mouseup with
> parameter 1, then executes handler 1. If the mouseup is
> received with a parameter 2 then control executes
> handler 2.
>
> Which other ways could I use to produce the same result?
>
> Al
> _______________________________________________
> 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