- Timestamp:
- Dec 12, 2011, 3:51:13 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- a6ce98d
- Parents:
- e946b884
- File:
-
- 1 edited
-
tolbase/lib/toltk/graph.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/graph.tcl
re946b884 r7ec9cb0 72 72 } 73 73 blt::AddBindTag $graph zoom-$graph 74 } 75 } 76 77 proc blt::RemoveBindTag { widget args } { 78 set oldTagList [bindtags $widget] 79 foreach tag $args { 80 set index [lsearch $oldTagList $tag] 81 if { $index >= 0 } { 82 bindtags $widget [lreplace $oldTagList $index $index] 83 } 74 84 } 75 85 } … … 246 256 set zoomInfo($graph,A,y) $zoomInfo($graph,B,y) 247 257 } 258 259 proc blt::ResetScroll { graph } { 260 global zoomInfo 261 262 eval $graph marker delete [$graph marker names "scroll*"] 263 blt::RemoveBindTag $graph scroll-region-$graph 264 set zoomInfo($graph,corner) A 265 } 266 267 proc blt::ScrollTitle { graph } { 268 if { [$graph cget -invertxy] } { 269 set coords "-Inf -Inf" 270 } else { 271 set coords "-Inf Inf" 272 } 273 $graph marker create text -name "scrollTitle" -text "scrolling ..." \ 274 -coords $coords -bindtags "" -anchor nw 275 }
Note: See TracChangeset
for help on using the changeset viewer.
