home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / editors / hsevlsfx.exe / HOME.HYP < prev    next >
Text File  |  1992-04-19  |  7KB  |  294 lines

  1. .HEADER
  2.  ~M~TwF~TKile~Kf~E│~M~TwO~TKptions~Ko~E│~M~TwH~TKelp~Kh~E│~AHISTORY $6~C33~Pb@B~E│ $1 - $2
  3. ═════╧═══════╧════╧═════════════╧════════════════════════════════════════
  4. .FOOTER
  5. ~L22
  6. ═══════════════════════════════════════════════════════════════════════════════
  7.  F1 ~AHELP~PMHelp~E F2 ~ACONTENTS~PA@C~E F3/4 ~ABACKTRACK~PB~E F5 ~ANOTEPAD~PA@R~E F6 ~ASEARCH~PA@X?Search string~E F7 ~ATYPE FILE~PT$_~E F10 ~AQUIT~PQ~E
  8. .REMARK 
  9. Demo hyperfile - browser
  10. Copyright (c) 1991 N.G.Taylor
  11. .
  12. .CHECK +fa
  13. Check both menu types
  14.  
  15. .
  16. .REMARK 
  17. Various menus, showing menu option text on left and action on right
  18. .
  19. .MENU File
  20. Directory   |Y@d*.*
  21. Change dir. |C@L*.
  22. Browse dir. |SBrowse
  23. Quit        |Q
  24. .
  25. .MENU Options
  26. Create notepad   |O01;pO.K.
  27. No backtrack     |O20
  28. Backtrack on     |O21
  29. Disable warnings |O80
  30. Warnings on      |O83
  31. .
  32. .MENU Help
  33. Information |NInfo
  34. Selecting   |NSelecting
  35. Funct. keys |NFkeys
  36. .
  37. .SCRIPT MENBAR
  38. ZX2;ZY1
  39. .
  40. .REMARK 
  41. Add extension of file, followed by action to perform for that file.
  42. The variable $< contains the full file name
  43. The actions 'L' below are dummy actions for extensions for which
  44. no action is required. Default action is to display the file as text.
  45. Directories, .TXT and .BAT files are handled in the BROWSE script below.
  46. Additional special cases can be added there as required.
  47. .
  48. .MENU extns
  49. OBJ|L
  50. LIB|L
  51. DBF|L
  52. SYS|L
  53. EXE|Nexec
  54. COM|Nexec
  55. PIC|G$<
  56. PCX|G$<
  57. HYP|dHS $<
  58. NTE|t$<
  59. HSF|c$<
  60. MNU|A@F$<
  61. *|T$<
  62. .
  63. .REMARK 
  64. This is a menu of things which can be done to directories.
  65. .
  66. .MENU Directory
  67. Change to|C$<
  68. Show     |DDIR/W $<
  69. .
  70. .REMARK 
  71. This is a menu for options on files with extension .TXT or .BAT
  72. .
  73. .MENU Text File
  74. Type     |T$<
  75. Edit     |dHN $<
  76. .
  77. .REMARK 
  78. general purpose confirm note:-
  79. call using parameter e.g.:-
  80.  NConfirm(Delete file)
  81. Sets flag C if OK selected, else clears it.
  82. .
  83. .NOTE Confirm
  84.      $\
  85.  ┌──────────┐  ┌──────────┐
  86.  │ ~A   OK   ~PO*C1~Ko~E │  │ ~A CANCEL ~PO*C~Kc~E │
  87.  └──────────┘  └──────────┘
  88. .
  89. .NOTE Info
  90.    - $9 -
  91.  Frame: $1
  92.  Title: $2
  93.  File : $3
  94.  Date : $4
  95.  Time : $5
  96.  ~ABacktrack ~O2 ~PO2A;NInfo~E with $6 entries
  97.  ~AAutoref ~O4 ~PO4A;NInfo~E
  98.  Error status $? ~C32~AClear~PYah;NInfo~E
  99. .
  100. .NOTE Selecting
  101. Press LEFT button to select item
  102. Press RIGHT mousebutton to select
  103. menu bar. Use TAB to move to next
  104. reference, Shift TAB for previous
  105. .
  106. .NOTE Browser
  107. This is a sample directory browser
  108.  
  109. Select directories to move around.
  110.  
  111. Select text files to type them.
  112. .
  113. .NOTE exec
  114. An action could be
  115. added to execute the
  116. selected program.
  117. .
  118. .NOTE Fkeys
  119. F1 Help            F2  Browse
  120. F3 Backtrack       F4  Select back
  121. F5 Notepad actions F6  Search text
  122. F7 Type file       F8  Do action    
  123. F9 DOS Shell       F10 Quit
  124. .
  125. .REMARK 
  126. Directory browser with actions depending on file type.
  127. See also MENU 'extns' above.
  128. .
  129. .SCRIPT Browse
  130. -- Display note about it
  131. NBrowser
  132. -- display directory list
  133. Lpd;Y@L*.*
  134. -- loop back if error set
  135. jspd
  136. -- jump depending on extension of selected file
  137. J$>
  138. -- by default, use lookup menu to find action to take 
  139. A@Mextns[$>];Jpd
  140. -- no extension - assume directory
  141. L
  142. L.
  143. A@Mdirectory;Jpd
  144. -- various text files
  145. LTXT
  146. LBAT
  147. LC
  148. A@MText File;Jpd
  149. .
  150. .SCRIPT SETUP
  151. O#
  152. -- show menu symbols + use first letter + immediate menus
  153. O17
  154. -- text as grey on black
  155. OTWB
  156. -- F1 is for help menu
  157. KF1MHelp
  158. KM1HELP
  159. -- Escape key selects MENBAR script
  160. KH4SMENBAR
  161. -- Various variables for funny characters
  162. Vt°
  163. Vd$
  164. -- defaults
  165. Vsfirst
  166. VxDog
  167. VnFrodo
  168. .
  169. .FRAME Home frame
  170. .TITLE HyperShell evaluation disk
  171.  
  172. [1]    ~AView READ.ME file~PTREAD.ME~K1~E
  173.  
  174. [2]    ~AView introduction~PdHS HS~K2~E
  175.  
  176. [3]    ~AView reference file~PdHS HSREF~K3~E
  177.  
  178. [4]    ~AView graphic file~PGmouse.pcx~K4~E
  179.  
  180. [5]    ~AAddress book database~PdHS ADDRBOOK~K5~E
  181.     ********* THIS NEEDS AT LEAST 10K FREE SPACE ON DISK **********
  182. [6]    ~AEnvironment introduction~PdHI EDINTRO~K6~E
  183.     ********* THIS NEEDS AT LEAST 50K FREE SPACE ON DISK **********
  184.  
  185. [9]    ~AQuit~PQ~K9~E
  186.  
  187.  ^----- Press number key to select
  188.  
  189. .
  190. .FRAME Browser
  191. .TITLE DOS directory structure browser
  192.  
  193.     This option provides a simple MSDOS directory structure browser.
  194.  
  195. [1]    Press This to browse -> ~SBrowse~K1~E
  196.  
  197. [2]    This hyperfile contains a number of ~Fuseful items~K2~E for
  198.     authors to include in their own hyperfiles
  199.  
  200. [3]    Also some handy ~FGadgets~K3~E are provided for authors
  201. .
  202. .FRAME useful items
  203. .TITLE items for authors to use
  204.     A number of useful items are provided in this hyperfile.
  205.  
  206.     An error number menu provides a useful means of getting the
  207.     text associated with an error status. The action
  208.  
  209.         p@MError text($$?)
  210.  
  211.     Will display the error text associated with the last error.
  212.  
  213.         The .HEADER demonstrates how a simple menu bar can be set up.
  214.  
  215.         The Info note shows how options can be toggled
  216. .
  217. .FRAME Gadgets
  218. .TITLE Useful accessories for hyperfiles
  219.  
  220. [1]    ~nThe confirm box~Psconf(feed $x)~K1~E
  221.  
  222. [2]    The selector - ~n$x~PVx@mselector;y~K2~E
  223.  
  224. [3]    The stepper - ~n$s~PVs@mstepper[$s];y~K3~E
  225.  
  226. [4]    The dialogue box - ~nName input~Pndialogue;y~K4~E  {$n}
  227.  
  228. [5]    ~FDescription~K5~E - Details about gadgets
  229. .
  230. .MENU selector
  231. Dog
  232. Cat
  233. Hamster
  234. Goldfish
  235. Rabbit
  236. Mouse
  237. Elephant
  238. .
  239. .SCRIPT conf
  240. -- get confirm response in flag C
  241. A@NConfirm
  242. -- if C not set
  243. zCp$n the $x growls menacingly
  244. -- if C set
  245. aCp$n the $x purrs gratefully
  246. .
  247. .REMARK 
  248. wrapping menu as stepper
  249. .
  250. .MENU stepper
  251. first|second
  252. second|third
  253. third|fourth
  254. fourth|fifth
  255. fifth|sixth
  256. sixth|seventh
  257. seventh|eighth
  258. eighth|ninth
  259. ninth|first
  260. .
  261. .REMARK 
  262. simple dialogue box for name input
  263. .
  264. .NOTE dialogue
  265.  
  266.  Enter the name of your $x here
  267.  
  268.    Name: ~I$n~W20~PVn%s;y~E~Q
  269.  
  270. .
  271. .FRAME description
  272. .TITLE details about gadgets
  273. ~A~PP;B~E~Q ~HThis is used for immediate return after confirmation
  274.     The confirm box is useful for confirming an action before it
  275.     is executed, in cases where some irreversible action is to
  276.     take place. e.g. a file is to be deleted. The confirm box can
  277.     be extended to any number of options.
  278.  
  279.     The selector presents a menu from which a new value for a
  280.     variable can be chosen. The variable can be used as the
  281.     reference text to show the current value.
  282.  
  283.     The stepper is similar to the selector, only allows the set
  284.     of values to be stepped through one at a time.
  285.  
  286.     The dialogue box is used to input a string from the user. It
  287.     is similar to the prompted input action, but it permits extra
  288.     information to be displayed around the input field, such as
  289.     the values of other variables
  290. .
  291. .REMARK 
  292. end of hyperfile
  293. .
  294.