home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / WM10.ZIP / DOC.DAT / menucmnd.txt < prev    next >
Encoding:
Text File  |  1995-08-30  |  5.8 KB  |  138 lines

  1.  WAVmaker Menu Commands
  2.  ──────────────────────
  3.  
  4.  This document describes features common to WMmain and WMmenu. For differences,
  5.  see {WMmenu}.
  6.  
  7.  Contents:   ■ Selecting a menu entry   {MenuCmnd  13}
  8.  ─────────   ■ What can else I do?      {MenuCmnd  30}
  9.              ■ Function key operations  {MenuCmnd  53}
  10.              ■ The command line         {MenuCmnd 103}
  11.  
  12.  
  13. ─── Selecting a menu entry ─────────────────────────────────────────────────────
  14.  
  15.  While in WMmain/WMmenu, there is always a currently selected menu entry (shown
  16.  in white on blue background). The selection is changed by either
  17.  
  18.                   (1) Sliding the mouse vertically, or
  19.  
  20.                   (2) Using the keypad:
  21.  
  22.                       ■ Up arrow key to move up one entry
  23.                       ■ Down arrow key to move down one entry
  24.                       ■ PgUp key for the first entry 
  25.                       ■ PgDn key for the last entry
  26.  
  27.  There can be up to 22 menu entries. The last one is always the Exit command.
  28.  
  29.  
  30. ─── What else can I do? ────────────────────────────────────────────────────────
  31.  
  32.  Apart from selecting entries (and terminating the menu program), you can
  33.  
  34.                   (1) Get Help for the currently selected entry
  35.                       (press Alt-H).
  36.  
  37.                   (2) Call up a Function key window displaying 
  38.                       Function key titles and values (press Alt
  39.                       and a Function key between F1 and F10).
  40.  
  41.                       See {MenuCmnd 53}.
  42.  
  43.                   (3) Edit the command line.
  44.  
  45.                       See {MenuCmnd 103}.
  46.  
  47.                   (4) Execute the command line (click the Left
  48.                       mouse button or hit Enter).
  49.  
  50.  For details about what goes on behind the scene in each case, see {Customiz}.
  51.  
  52.  
  53. ─── Function keys ──────────────────────────────────────────────────────────────
  54.  
  55.  While in WMmain and WMmenu, you have ten programmable Function keys (F1 to 
  56.  F10) at your disposal. Each one is assigned a title and a value. Titles and 
  57.  values can be up to 15 characters long (reflecting the size of the default 
  58.  DOS keyboard buffer).
  59.  
  60.  At startup, the Function key titles are read from the menu definition file.
  61.  Thereafter, a private Function key file is read. There is one such file for
  62.  each menu {Customiz}. It's used to store Function key values between runs. 
  63.  Finally, WMmenu will read the public file used by all WAVmaker applications 
  64.  to exchange Function key information {FnKeys}, so as to inherit new values 
  65.  for Function keys with titles matching those in the public file. This way, 
  66.  new Function key values can be propagated down from a menu to a submenu 
  67.  (WMmain does not inherit Function key values at startup, since it's supposed 
  68.  to manage the top level menu ONLY).
  69.  
  70.  To call up a window showing all current Function key titles and values, press 
  71.  Alt and a Function key between F1 and F10 (this works in all WAVmaker 
  72.  applications with Function key support, by the way).
  73.  
  74.  To make the Function key window go away, either
  75.  
  76.                         ■ Press Alt and F1-F10 again, or
  77.                         ■ Hit the Esc key, or
  78.                         ■ Click the Right mouse button, or
  79.                         ■ Select a new menu entry
  80.  
  81.  Hitting a Function key without the Alt modifier causes the current value of 
  82.  the Function key to be written to the command line. 
  83.  
  84.  There is no mechanism for ASSIGNING values to Function keys in WMmain and
  85.  WMmenu. This is done in the applications called from the menu.
  86.  
  87.  An example: 
  88.  ───────────
  89.  
  90.  In WAVmaker, WM Read is used to browse directory listings {ReadDir}. While 
  91.  doing this, you can select a filename and assign it to the Function key 
  92.  entitled "File #1". Upon return to the calling menu, hitting the Function key 
  93.  entitled "File #1" (provided that the menu in question has one) will cause 
  94.  the filename to be written to the command line, avoiding you the hassle of 
  95.  having to remember it (and of having to type it in correctly!) when entering 
  96.  the next command.
  97.  
  98.  Also, many WAVmaker applications will automatically write various parameters 
  99.  (filenames, times, sample numbers etc.) to the public Function key file, 
  100.  making them available to the calling program.
  101.  
  102.  
  103. ─── The Command line ───────────────────────────────────────────────────────────
  104.  
  105.  Reading from left to right, the command line contains the following 
  106.  components:
  107.  
  108.                  (1) The current directory (in black). Each menu entry
  109.                      has itw own "home" directory, so don't be surprised 
  110.                      to see this component change with your menu selection.
  111.  
  112.                  (2) The command associated with the selected menu entry,
  113.                      if there is one (in white).
  114.  
  115.                  (3) The default parameters for the selected menu entry, 
  116.                      if there are any (in black).
  117.  
  118.  The difference between commands (2) and default parameters (3) is that the
  119.  former are write protected, while the latter can be edited. The command line 
  120.  edit commands are the usual ones:
  121.  
  122.                   ■ Ins key (toggle Insert/Overwrite mode)
  123.                   ■ Del key (delete next character)
  124.                   ■ Backspace (delete previous character)
  125.                   ■ Left arrow (move cursor one character left)
  126.                   ■ Right arrow (move cursor one character right)
  127.                   ■ Home key (move cursor to the first editable character)
  128.                   ■ End key (move cursor to the last non-blank, editable 
  129.                     character)
  130.  
  131.  Hitting Function keys F1 to F10 causes the current value of the Function key
  132.  to be written to the command line {MenuCmnd 53}.
  133.  
  134.  In order to execute the current command line, 
  135.  
  136.                         ■ Hit Enter, or
  137.                         ■ Click the Left mouse button
  138.