send mouseup to control

jonathandlynch at gmail.com jonathandlynch at gmail.com
Wed May 24 14:43:38 EDT 2017


I just send the ID of the sending object as a parameter.

Sent from my iPhone

On May 24, 2017, at 1:58 PM, hh via use-livecode <use-livecode at lists.runrev.com> wrote:

>> Alejandro T. wrote:
>> 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).
> 
> Yet another option could be to use more parameters:
> -- b is the button number (obligatory)
> -- [b may be also misused for any positive integer]
> -- clicking the control with that handler leaves x empty
> on mouseUp b,x
> switch x
>    case ...
>      break
>    case ...
>     ...
>    default -- x is empty
>      -- the direct-click code, use b
>   end switch
> end mouseUp
> 
> 
> _______________________________________________
> 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