home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / editors / hypsh40b.arj / HYPDEVEL.LZH / MENUBAR.HYP < prev    next >
Text File  |  1991-04-24  |  7KB  |  306 lines

  1. .REMARK
  2. Menubar style hyperfile template
  3. Copyright (c) 1990 N.G.Taylor
  4. .CHECK +fa
  5. Check both menu types
  6.  
  7. .HEADER
  8. ~M ~TwF~TKile ~PMFile~Kf~E ~M ~TwC~TKontents ~PMContents~Kc~E ~M ~TwG~TKoto ~PMGoto~Kg~E ~M ~TwS~TKearch ~PMSearch~Ks~E ~M ~TwO~TKther ~PMOther~Ko~E ~M ~TwH~TKelp ~PMHelp~Kh~E  {Name of application}
  9. ╔══╧════════╧════════╧══════╧════════╧═══════╧══════════════════════════════╗
  10. ╚╡~DU ~Tw $1 - $2 ~h/~C72~DV<*>~DU~Z~C76~DT╞╝
  11.  
  12. .
  13. .MENU File
  14. Type file  |T?File name
  15. ───────────|
  16. Command    |D?Command line
  17. DOS shell  |D
  18. ───────────|
  19. About     a|NAbout
  20. Quit  F10 q|Q
  21. .
  22. .MENU Search
  23. Title search   |A@S?Search string
  24. Search Text  F6|A@X?Search string
  25. Pick and search|SPicksrch
  26. ───────────────|
  27. Add to search  |O*64;MSearch
  28. Refine search  |O*63;MSearch
  29. ───────────────|
  30. Matched flag ± |ZL/
  31. ───────────────|
  32. Next matching  |F+1
  33. List matching l|A@C1
  34. Unmatched list |A@C2
  35. .
  36. .MENU Contents
  37. Contents list F2|A@C
  38. From current    |A@C3$1
  39. Starting with   |A@C0?Starting with
  40. ────────────────|
  41. {Other types}   |
  42. .
  43. .MENU Goto
  44. Next frame        n|F+
  45. Matching frame    m|F+1
  46. Previous frame    p|F-
  47. Home frame         |b1
  48.  ───────────────── |
  49. Backtrack one     b|B
  50. Unwind backtrack F4|b@B
  51. Revisit frame      |A@b
  52.  ───────────────── |
  53. Select noted ref F5|A@R
  54. .
  55. .MENU Other
  56. Action    F8|A?What action
  57. Calculator  |SCalculator
  58. Example     |FExample script
  59. Print frame |Dhp -p -o hsref $1
  60. Set colours |Scolours
  61. Last error  |Sperror
  62. .
  63. .MENU Help
  64. Selecting    |NSelecting
  65. Key mappings |NKey mappings
  66. Funct. keys  |NFkeys
  67. Menu bar     |NMenu bar
  68. Information i|NInfo
  69. Colour key   |NKey
  70. Paged lists  |MPaged Help
  71. .
  72. .MENU Paged Help
  73. Control Keys |NPaged control keys
  74. Paged lists  |NPaged lists
  75. Selecting    |NSelecting
  76. .
  77. .CHECK -fax
  78. .MENU Item
  79. Action ref  |A
  80. Menu Choice |C
  81. Title       |D
  82. Frame ref   |F
  83. Menu heading|H
  84. Note heading|J
  85. Note text   |K
  86. Menu ref    |M
  87. Note ref    |N
  88. Menu seln   |O
  89. Pop message |P
  90. Invisible   |Q
  91. Request     |R
  92. Script ref  |S
  93. Frame text  |T
  94. .
  95.  
  96. .MENU Error text
  97. 1 - Operation cancelled
  98. 2 - No selection from menu
  99. 3 - End of file
  100. 4 - Cant open file
  101. 5 - File not open
  102. 6 - File open
  103. 7 - File changed
  104. 8 - At start of backtrack
  105. 9 - Divide by 0
  106. 10 - Value not expected
  107. 11 - Value expected
  108. 12 - Undefined opcode
  109. 13 - Unmatched parenthesis
  110. 14 - Syntax error
  111. 15 - Script not available
  112. 16 - Menu not available
  113. 17 - Note not available
  114. 18 - Frame not available
  115. 19 - Key not defined
  116. 20 - Invalid key code
  117. 21 - Local ref can't be noted
  118. 22 - Not at reference
  119. 23 - Key not mapped
  120. 24 - No action or disabled
  121. 25 - Invalid action code
  122. 26 - No command
  123. 27 - Env var not present
  124. 28 - Invalid dynamic menu
  125. 29 - Line too wide for screen
  126. 30 - String too long
  127. 31 - Too many lines in frame
  128. 32 - Max script reached
  129. 33 - Maximum menu size reached
  130. .
  131. .NOTE About
  132.  
  133. {About the application}
  134.  
  135. .NOTE Paged lists
  136.  Type contents of file
  137.  Search titles or texts
  138.  Detailed directory list
  139.  Contents list
  140.  Backtrack list
  141.  Noted references list
  142. .
  143. .NOTE Paged control keys
  144.  F1 or ?    - This help
  145.  F2 or #    - Page number (*T)
  146.  F3 or PgUp - Previous page
  147.  F4 or Home - Start of list/file
  148.  F5         - Find next (*T)
  149.  F6 or /    - Search file (*T)
  150.  F8 or End  - End of file (*T)
  151.  F9         - Quit (*T Suspend list)
  152.  F10        - Quit (*T Quit list)
  153.  Return     - Select (*T Suspend)
  154.  (*T - Type file control keys)
  155. .
  156. .NOTE Info
  157.    - $9 -
  158.  Frame: $1
  159.  Title: $2
  160.  File : $3
  161.  Date : $4
  162.  Time : $5
  163.  ~ABacktrack ~O2 ~PO2A;NInfo~E with $6 entries
  164.  ~AAutoref ~O4 ~PO4A;NInfo~E
  165.  Error status $? ~C32~AClear~PYah;NInfo~E
  166. .
  167. .NOTE Menu bar
  168.  The menus on the menu bar can be
  169.  selected using their initial
  170.  letters. With a menu on display,
  171.  the options can be selected with
  172.  the initial letter of the option.
  173. .
  174. .NOTE Key mappings
  175.  The following key mappings
  176.  are always provided:-
  177.  
  178.   q     Quit HyperShell
  179.   n     Next frame
  180.   p     Previous frame
  181.   b     Backtrack one step
  182.   m     Next matching frame
  183. .NOTE Key
  184.  A ~Mmenu~PNKey~E gives a menu.
  185.  A ~Nnote~PNKey~E displays a note.
  186.  A ~Freference~PNKey~E allows a
  187.  new frame to be selected.
  188.  An ~Aaction~PNKey~E does some
  189.  other action.
  190.  An ~Iinput field~PNKey~E permits some
  191.  value to be entered.
  192. .
  193.  
  194. .NOTE Notepad
  195.  The notepad allows you to store a
  196.  reference that you may want to use
  197.  later. The INS key adds the reference
  198.  pointed at to the notepad, or the
  199.  current frame if not pointing at any.
  200.  The DEL key deletes a reference.
  201.  The NOTEPAD option on the main menu
  202.  allows you to select from the notepad
  203.  and delete unwanted references.
  204. .
  205.  
  206. .NOTE Selecting
  207.  Use the cursor keys or the TAB and
  208.  SHIFT/TAB keys to move to a reference
  209.  Press RETURN to select the reference.
  210.  Press ESCAPE for the control menu, or
  211.  to cancel a menu, note or list.
  212.  
  213.  When using a mouse, move mouse to
  214.  position cursor to select a reference,
  215.  Press LEFT mouse button to select.
  216.  Press RIGHT mouse button for the
  217.  control menu or to cancel a menu,
  218.  note, or list.
  219.  
  220.  See Also:- ~NFunction keys~PNFkeys~E
  221. .
  222. .NOTE Colour choice
  223.   Select $\ground colour
  224.  
  225. ~F~BW~TKBlack~PK~E~BK  ~F~TBBlue~PB~E    ~F~TGGreen~PG~E  ~F~TCCyan~PC~E
  226. ~F~TRRed~PR~E    ~F~TMMagenta~PM~E ~F~TYBrown~PY~E  ~F~TWWhite~PW~E
  227. ~F~BW~TkGrey~Pk~E~BK   ~F~TbBlue~Pb~E    ~F~TgGreen~Pg~E  ~F~TcCyan~Pc~E
  228. ~F~TrRed~Pr~E    ~F~TmMagenta~Pm~E ~F~TyYellow~Py~E ~F~TwWhite~Pw~E
  229.  
  230.  Choose bright for blink
  231.      on backgrounds
  232. .
  233.  
  234. .NOTE Fkeys
  235.  F1 Help        F2  Full Contents
  236.  F3 Backtrack   F4  Select back
  237.  F5 Notepad     F6  Search text
  238.  F7 Type file   F8  Do action
  239.  F9 DOS Shell   F10 Quit Program
  240.  
  241.  See also: ~NKey mappings~E
  242. .
  243. .CHECK +fa
  244.  
  245. .SCRIPT Colours
  246. Y?Press escape to abort at any time.   (Return to continue)
  247. pChoose Item to change colour of
  248. V[@MItem
  249. V{@NColour choice(Fore)
  250. V]@NColour choice(Back)
  251. O$[${$]
  252. y
  253. .
  254. .SCRIPT Calculator
  255. Ve?Enter expression (x = last result $x)
  256. Vx=$e
  257. pExpr $e = $x
  258. .
  259. .CHECK +fax
  260.  
  261. .SCRIPT perror
  262. p@MError text($?)|Error %s
  263. .
  264. .SCRIPT Picksrch
  265. pPick a word with the mouse
  266. P;Ve&P;abq
  267. A@X$e
  268. .
  269. .SCRIPT SETUP
  270. O#
  271. O16
  272. O*11
  273. OUwK
  274. OVrk
  275. OTWB
  276. KF1MHelp
  277. KM1HELP
  278. KH4SMENBAR
  279. KH3Paged Help
  280. K#nF+
  281. K#pF-
  282. K#bB
  283. K#mF+1
  284. K#qQ
  285. K#iNinfo
  286. K#aNHyperShell
  287. K#lA@C1
  288. Vsfirst
  289. VZ$d?
  290. VrY?Press escape to abort at any time.   (Return to continue)
  291. .
  292. .SCRIPT MENBAR
  293. ZX1;ZY1
  294. .
  295. .INDEX
  296. .REMARK
  297.  
  298. --------------------------- FRAME SECTION ----------------------------------
  299. .
  300. .FRAME First frame
  301. .TITLE Title of first frame
  302.  
  303.         t.b.s.
  304.  
  305. .
  306.