send mouseup to control

hh hh at hyperhh.de
Wed May 24 19:58:07 CEST 2017


> 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




More information about the use-livecode mailing list