From 81348b18fcd26678bbdd04d40a2370f13260fbc1 Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 26 Feb 2002 01:07:08 +0000 Subject: * library/scale.tcl: mirror B2 bindings to B3 on Windows to better accomodate two button mice. [Patch #493145] --- library/scale.tcl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 { 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 [bind Scale ] + bind Scale [bind Scale ] + bind Scale [bind Scale ] + bind Scale [bind Scale ] +} bind Scale { tk::ScaleControlPress %W %x %y } -- cgit v0.12