home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 1 / AU_CD1.iso / internet / starterpak / !TCPIP / TCPIP_Doc / Notes / MenuFiles < prev    next >
Text File  |  1995-02-20  |  1KB  |  40 lines

  1. !TCPIP (vterm) Menu file format
  2. ===============================
  3.  
  4. The file format for menu definitions was very lazily based upon that
  5. used by RISC_OSLib for specifying menus and sort of grew from there.
  6.  
  7. While reading this, it is worth looking at one or more of the menu file
  8. in !TCPIPUser.Menus.
  9.  
  10. The first line in the menu file is a list of the actual menu items as
  11. seen on a menu in the following format:
  12.  
  13. <menu entry> [<sep> <menu entry> ...]
  14.  
  15.   <sep> is an item separatr as follows:
  16.  
  17.     "," is a normal separator.
  18.     "|" shows a line between the entries.
  19.  
  20.   Any <menu entry> may be prefixed with "~" to cause it to be greyed
  21. out, and so unselectable.
  22.  
  23.  
  24. Subsequent lines in the menu file contain the actual macro, one line for
  25. each menu entry in the following format:
  26.  
  27. ['@'<submenu file>] [<command> [ '|' <command> ...] ]
  28.  
  29. For example:
  30.  
  31. @Mail
  32.   Specifies a submenu only.
  33.  
  34. @Time time read
  35.   Specifies a submenu 'time' with action command 'time read'.
  36.   
  37. filer run <Newsbase$Dir>.!Run|filer run <TTFN$Dir>.!Run
  38.  Note the separator ---------^
  39.  This loads Newsbase and !TTFN
  40.