R click vs L Click
Richard Gaskin
ambassador at fourthworld.com
Tue Dec 18 14:01:38 EST 2007
jcwall wrote:
> I have been trying to see if I can distinguish which mouse
> button was used to click on a button but without success.
> Is this possible and if so is it cross platform?
Yes and yes.
The mouseDown and mouseUp messages are sent with a parameter which tells
you which button was pressed to trigger the message. Because UNIX
systems commonly have three buttons all three are supported, numbered 1
through 3 from left to right:
on mouseDown pButton
if pButton = 3 then DoRightClick
else doLeftClick
end mouseDown
--
Richard Gaskin
Managing Editor, revJournal
_______________________________________________________
Rev tips, tutorials and more: http://www.revJournal.com
More information about the use-livecode
mailing list