home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 488.lha / TCL_alpha2 / tcl.lzh / tcl / docs / tcla / windowevent.doc < prev   
Encoding:
Text File  |  1990-05-04  |  577 b   |  38 lines

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