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

  1. menu
  2. ----
  3.  
  4.     menu add windowhandle menuname itemname subitemname proc
  5.  
  6. The "menu add" command takes a window name, menu name, item name and 
  7. optional subitem name (send an empty string if your item doesn't have 
  8. subitems), creates a corresponding menu entry for the named window, 
  9. and tags the item with the procedure (proc) or code to execute.  When 
  10. the menu entry is selected, the attached Tcl code will be selected.
  11.  
  12. The menu is changed for the current window.  Use the "window current"
  13. command to change windows.
  14.  
  15.