diff options
author | hobbs <hobbs@noemail.net> | 2002-02-26 01:07:07 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2002-02-26 01:07:07 (GMT) |
commit | e33bfc48e1b745cdb8e5c8d9ac82cfb91bb5e444 (patch) | |
tree | 41f90770e587f0768698c6d2298dcad946b1f974 /library/scale.tcl | |
parent | ca71aafb2cd0432a9ccb0b41206b536730c43f5e (diff) | |
download | tk-e33bfc48e1b745cdb8e5c8d9ac82cfb91bb5e444.zip tk-e33bfc48e1b745cdb8e5c8d9ac82cfb91bb5e444.tar.gz tk-e33bfc48e1b745cdb8e5c8d9ac82cfb91bb5e444.tar.bz2 |
* library/scale.tcl: mirror B2 bindings to B3 on Windows to better
accomodate two button mice. [Patch #493145]
FossilOrigin-Name: b405f649ffb2bc6fa8d972efc944e0095d463cdb
Diffstat (limited to 'library/scale.tcl')
-rw-r--r-- | library/scale.tcl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/library/scale.tcl b/library/scale.tcl index ac891be..76c8cb2 100644 --- a/library/scale.tcl +++ b/library/scale.tcl @@ -3,7 +3,7 @@ # This file defines the default bindings for Tk scale widgets and provides # procedures that help in implementing the bindings. # -# RCS: @(#) $Id: scale.tcl,v 1.8 2001/08/01 16:21:11 dgp Exp $ +# RCS: @(#) $Id: scale.tcl,v 1.9 2002/02/26 01:07:08 hobbs Exp $ # # Copyright (c) 1994 The Regents of the University of California. # Copyright (c) 1994-1995 Sun Microsystems, Inc. @@ -62,6 +62,14 @@ bind Scale <ButtonRelease-2> { tk::ScaleEndDrag %W tk::ScaleActivate %W %x %y } +if {[string equal $tcl_platform(platform) "windows"]} { + # On Windows do the same with button 3, as that is the right mouse button + bind Scale <3> [bind Scale <2>] + bind Scale <B3-Motion> [bind Scale <B2-Motion>] + bind Scale <B3-Leave> [bind Scale <B2-Leave>] + bind Scale <B3-Enter> [bind Scale <B2-Enter>] + bind Scale <ButtonRelease-3> [bind Scale <ButtonRelease-2>] +} bind Scale <Control-1> { tk::ScaleControlPress %W %x %y } |