From 8fcf4d700ddfdaa362006f717d3038912ecd0a59 Mon Sep 17 00:00:00 2001 From: joye Date: Fri, 20 Jun 2014 17:52:27 +0000 Subject: *** empty log message *** --- library/graph.tcl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/library/graph.tcl b/library/graph.tcl index 8a221b7..a4dfe8e 100644 --- a/library/graph.tcl +++ b/library/graph.tcl @@ -72,12 +72,13 @@ proc Blt_ResetCrosshairs { g state } { proc Blt_ZoomStack { g args } { array set params { -mode click + -button "ButtonPress-3" } array set params $args if { $params(-mode) == "click" } { - blt::ZoomStack::ClickClick $g + blt::ZoomStack::ClickClick $g $params(-button) } else { - blt::ZoomStack::ClickRelease $g + blt::ZoomStack::ClickRelease $g $params(-button) } } @@ -213,14 +214,14 @@ proc blt::ZoomStack::Init { g } { set _private($g,corner) A } -proc blt::ZoomStack::ClickClick { g {start "ButtonPress-1"} {reset "ButtonPress-3"} } { +proc blt::ZoomStack::ClickClick { g reset } { variable _private Init $g bind zoom-$g "focus %W" bind zoom-$g { blt::ZoomStack::Reset %W } - bind zoom-$g <${start}> { blt::ZoomStack::SetPoint %W %x %y } + bind zoom-$g { blt::ZoomStack::SetPoint %W %x %y } bind zoom-$g <${reset}> { if { [%W inside %x %y] } { blt::ZoomStack::Reset %W @@ -229,7 +230,7 @@ proc blt::ZoomStack::ClickClick { g {start "ButtonPress-1"} {reset "ButtonPress- blt::AddBindTag $g zoom-$g } -proc blt::ZoomStack::ClickRelease { g } { +proc blt::ZoomStack::ClickRelease { g reset } { variable _private Init $g @@ -238,7 +239,7 @@ proc blt::ZoomStack::ClickRelease { g } { bind zoom-$g {blt::ZoomStack::DragStart %W %x %y} bind zoom-$g {blt::ZoomStack::DragMotion %W %x %y} bind zoom-$g {blt::ZoomStack::DragFinish %W %x %y} - bind zoom-$g { + bind zoom-$g <${reset}> { if { [%W inside %x %y] } { blt::ZoomStack::Reset %W } -- cgit v0.12