diff options
author | stanton <stanton> | 1998-11-25 21:16:28 (GMT) |
---|---|---|
committer | stanton <stanton> | 1998-11-25 21:16:28 (GMT) |
commit | 0fe03c2e56a2ab06690ea189ab1136b35f5f80b6 (patch) | |
tree | 4ad0c5e136a5786750291df60b74a1358a56c774 /library/listbox.tcl | |
parent | cfaf90b6bd984f4e72ed307384968bcad79500d5 (diff) | |
download | tk-0fe03c2e56a2ab06690ea189ab1136b35f5f80b6.zip tk-0fe03c2e56a2ab06690ea189ab1136b35f5f80b6.tar.gz tk-0fe03c2e56a2ab06690ea189ab1136b35f5f80b6.tar.bz2 |
* integrated tk8.0.4 changes.
* generic/tkBind.c: fixed deletion order bug where a crash would
result if a binding deleted "."
Diffstat (limited to 'library/listbox.tcl')
-rw-r--r-- | library/listbox.tcl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/library/listbox.tcl b/library/listbox.tcl index 0002502..c19afdc 100644 --- a/library/listbox.tcl +++ b/library/listbox.tcl @@ -3,10 +3,11 @@ # This file defines the default bindings for Tk listbox widgets # and provides procedures that help in implementing those bindings. # -# RCS: @(#) $Id: listbox.tcl,v 1.1.4.2 1998/09/30 02:17:33 stanton Exp $ +# RCS: @(#) $Id: listbox.tcl,v 1.1.4.3 1998/11/25 21:16:33 stanton Exp $ # # Copyright (c) 1994 The Regents of the University of California. # Copyright (c) 1994-1995 Sun Microsystems, Inc. +# Copyright (c) 1998 by Scriptics Corporation. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. @@ -171,6 +172,14 @@ bind Listbox <B2-Motion> { %W scan dragto %x %y } +# The MouseWheel will typically only fire on Windows. However, +# someone could use the "event generate" command to produce one +# on other platforms. + +bind Listbox <MouseWheel> { + %W yview scroll [expr - (%D / 120) * 4] units +} + # tkListboxBeginSelect -- # # This procedure is typically invoked on button-1 presses. It begins |