Detect Name of Button on Mouse Click

Richmond richmondmathewson at gmail.com
Wed May 29 12:55:19 EDT 2013


Well, I don't know what is so difficult about that:

on openCard declare a global string variable (e.g. BNAME)

and then have this as 2 lines of code in each button script:

put the name of me into BNAME
pass mouseUp

and then this in your card script:

on mouseUp
    put BNAME
end mouseUp

Of course, things will get very difficult indeed if you are generating 
buttons on the fly
and you cannot work out how to inject those 2 lines of code into each of 
them.

Richmond.




More information about the Use-livecode mailing list