home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource
/
46_5.tcl
< prev
next >
Wrap
Text File
|
2003-04-16
|
357b
|
23 lines
#
# Example 46-5
# Drag-scrolling a pair of listboxes together.
#
bind $l <B2-Motion> \
[list BindDragto %x %y $frame.key $frame.cmd]
bind $l <Button-2> \
[list BindMark %x %y $frame.key $frame.cmd]
proc BindDragto { x y args } {
foreach w $args {
$w scan dragto $x $y
}
}
proc BindMark { x y args } {
foreach w $args {
$w scan mark $x $y
}
}