Hi Al,
I wonder if the "call" command could simplify things for you. (Probably
not but I thought I would mention it.)
Otherwise maybe put your mouseUp code in separate handlers outside of
"mouseUp" so you can have more parameter options in their execution.
Thanks -
Phil Davis
On 5/24/17 10:21 AM, 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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
Phil Davis
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode