home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / tcl_447.lzh / TCL / tcl.lzh / tcl / help / windowevent < prev   
Text File  |  1990-05-03  |  611b  |  35 lines

  1.  
  2. You do a
  3.  
  4.     windowevent attach eventtype routine
  5.  
  6. To attach a Tcl routine to a window message event type.  The events
  7. supported are:
  8.  
  9.     newsize
  10.     refreshwindow
  11.     mousebuttons
  12.     menupick
  13.     closewindow
  14.     vanillakeys
  15.     rawkeys
  16.     intuiticks
  17.     activewindow
  18.     inactivewindow
  19.     newprefs
  20.     diskinserted
  21.     diskremoved
  22.  
  23.  
  24. if routine is an empty string, detaches current event
  25. if you attach a routine to an event that already has
  26. a routine attached, the old one goes away
  27. get returns the current routine or empty string if there
  28. isn't one attached
  29.  
  30.     windowevent get eventtype
  31.  
  32. "windowevent detach" allows you to detach window events.
  33.  
  34.  
  35.