Syntax: mouseUp mouseButtonNumber

Mike Bonner bonnmike at gmail.com
Thu Sep 22 17:24:47 EDT 2016


The parameter is passed on, not set by you.  To do what you want it would
be more like

on mouseup pvar
if pvar is 3 then
do stuff

end if
end mouseup

On Thu, Sep 22, 2016 at 2:11 PM, Roger Eller <roger.e.eller at sealedair.com>
wrote:

> The script editor won't compile a mouseUp  handler with 1 2 or 3 as a
> parameter.
>
> on mouseUp 3
>    do stuff
> end mouseUp
>
> I am trying to get a right-click to show a contextual menu on Windows.
>
> ~Roger
> _______________________________________________
> 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