home *** CD-ROM | disk | FTP | other *** search
/ Practical Programming in Tcl & Tk (4th Edition) / TCLBOOK4.BIN / mac / exsource.old / 31_2.tcl < prev    next >
Text File  |  2003-04-15  |  233b  |  14 lines

  1. #
  2. # Example 31-2
  3. # Scroll_Set manages optional scrollbars.
  4. #
  5.  
  6. proc Scroll_Set {scrollbar geoCmd offset size} {
  7.     if {$offset != 0.0 || $size != 1.0} {
  8.         eval $geoCmd                    ;# Make sure it is visible
  9.     }
  10.     $scrollbar set $offset $size
  11. }
  12.  
  13.  
  14.