From: Alastair D. <ala...@si...> - 2005-03-21 20:01:08
|
From the point-of-view of developers of cross-platform applications, = this particular difference feels unnecessary. =20 Windows and Linux Tk both always call the right button <Button-3> = whether or not there are actually three mouse buttons. Aqua Tk always calls the = right button <Button-2>. We wouldn't lose consistency in adopting the same convention as Windows and Linux, but we would simplify cross-platform scripting. Otherwise, it just means that there must be another test of [tk windowingsystem] to accommodate this. (Obviously, there are plenty of = these already, but most of them do actually handle genuine platform differences...) All in my humble opinion of course :-) Best wishes, Alastair -----Original Message----- From: Jim Ingham Sent: 21 March 2005 18:55 Subject: Re: [MACTCL] Right-click The Tk Aqua code just reports the button number that the system =20 sends. On Aqua, right mouse button always sends button 2, since that =20 way you get the same button number for right mouse click for a two =20 and a three button mouse. Then if you have a third button, that =20 sends 3. Not sure I want to change this, though it would be easy enough to do... Jim On Mar 21, 2005, at 9:56 AM, Alastair Davies wrote: > > Same for me too: I have a two-button + wheel mouse that I can use with = a > Windows PC and a MacOS X system. It generates a <Button-2> event for = a > right-click and a <Button-3> event for a click of the wheel when used = on > MacOS X, and vice versa when used on Windows. This seems gratuitously > different. Is it too late to change? > > Regards, > Alastair > > > -----Original Message----- > From: J=E9r=F4me Gagnon-Voyer > Sent: 24 April 2004 18:05 > Subject: Re: [MACTCL] Right-click > > > Same problem here with aMSN > > I changed manually all Button 3 for Button 2 and all Button3 for=20 > Button2. (With virtual events) > > Le 04-04-24, =E0 06:56, Neil Madden a =E9crit : > > >> A related question: I have a 3-button mouse which I use with os x.=20 >> However, the right mouse button gets delivered as <Button-2> and the=20 >> middle as <Button-3>, which is different to how most apps bind to=20 >> right and middle mouse button normally. I've been told that this is=20 >> just a misconfiguration of my mouse somewhere, but I'm not so sure -=20 >> the right mouse button acts correctly in every application other than = >> Tk-based ones. >> >> Anyone have any clues? If it is a misconfiguration - anyone know >> where to correct it? >> |