home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 2.2 / 1996-03_Disc_2.2.iso / locus / dist / instmenu.scr < prev    next >
Text File  |  1995-09-10  |  2KB  |  50 lines

  1. ; This file uses Mike D.'s scripting routines to create a menu
  2. ; hierarchy.
  3.  
  4. ; FORMAT:
  5. ; MENU (menu#1_Title, <NONE/parentMenuName>,
  6. ;       entry#1_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
  7. ;       entry#2_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
  8. ;       .
  9. ;       .
  10. ;       .
  11. ;       entry#n_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
  12. ;       MENU_END)
  13. ;
  14. ; MENU (menu#2_Title, etc.)
  15. ;
  16. ; ...and so on.
  17.  
  18. ; IMPORTANT NOTES:
  19. ;   --When building the hierarchy,  setup uses non-case-sensetive
  20. ;       strings to identify parents and children.  So you MUST NOT
  21. ;       have two entries or menus with the same title!!
  22. ;
  23. ;   --The root level menu will have 'None' for its parent.  All other
  24. ;       windows can have anything here.  At the moment,  this field
  25. ;       isn't used for anything.  In the future,  it could provide
  26. ;       a means to identify non-unique menu entries.
  27. ;
  28. ;   --All entries in a menu either call a child menu or a function.
  29. ;       The <SUBMENU/FUNCTION/FLYMENU> field determines the behavior
  30. ;       for the corresponding entry.  If you enter SUBMENU,  the name
  31. ;       in the first field determines which submenu the entry will
  32. ;       call. You need no third field in this case (and should not
  33. ;       enter one). If you enter FLYMENU,  the third field defines
  34. ;       a function which generates a menu on the fly and tries to
  35. ;       attach it to the entry node. Writing FUNCTION to this field
  36. ;       causes the entry to call the function linked to the name
  37. ;       in the third field (the  linkage takes place in a list in the
  38. ;       list in the menuFns.c file).
  39. ;
  40. ;  A simple example follows.
  41.  
  42. MENU (Main Menu, None,
  43.   Full Install, FUNCTION, doFullInstall,
  44.   Half Install, FUNCTION, doHalfInstall,
  45.   Quit, FUNCTION, quit,
  46.   MENU_END)
  47.  
  48. ENDSCRIPT
  49.  
  50.