Changeset 7ec9cb0 in tol


Ignore:
Timestamp:
Dec 12, 2011, 3:51:13 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a6ce98d
Parents:
e946b884
Message:

fixes #1354, recovering procedures which were lost in last commit of graph.tcl

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3902 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/graph.tcl

    re946b884 r7ec9cb0  
    7272    }
    7373    blt::AddBindTag $graph zoom-$graph
     74  }
     75}
     76
     77proc 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    }
    7484  }
    7585}
    … …  
    246256  set zoomInfo($graph,A,y) $zoomInfo($graph,B,y)
    247257}
     258
     259proc 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
     267proc 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.