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 / menu.doc < prev    next >
Encoding:
Text File  |  1990-05-04  |  580 b   |  19 lines

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