AW: 3 button mice with Macs.
J. Landman Gay
jacque at hyperactivesw.com
Mon Apr 30 11:08:06 EDT 2007
Tiemo Hollmann TB wrote:
> hmmm, looks like RR has to be updatet. It would be a pitty, if Apple user
> can't use the right mouse button for the future.
No, it works just fine and you don't have to do anything different for
Mac than you do for Windows. This is all you need:
on mouseUp tBtn
if tBtn = 3 then
-- do right click stuff
else
do left-click stuff
end if
end mouseUp
This also works with mousedown. You do not need to test the OS or do
anything else. If a Mac user has a 3-button mouse, right-clicking will
trigger this the same as Windows does. If they have only a one-button
mouse, the OS will send the "3" parameter when they control-click. You
don't need a controlKey handler or any other special treatment.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list