home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / tcl / tclmotif.1 / tclmotif / tm.1.2 / doc / examples / double.tcl < prev    next >
Encoding:
Text File  |  1993-10-26  |  334 b   |  9 lines

  1. # Double the application window width and height.
  2. # First, retrieve position and size resources :
  3. . getValues -x x -y y -width width -height height
  4. set width2  [expr width*2]
  5. set height2 [expr height*2]
  6. # Then, set back the new values :
  7. . setValues -width $width2 -height $height2
  8. . setValues -x [expr $x-$width] -y [expr $y-$height]
  9.