home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypertxt / msdos / hs25 / browser.hyp < prev    next >
Encoding:
Text File  |  1989-05-07  |  8.0 KB  |  397 lines

  1. .REMARK
  2. Demo frameset - browser
  3. Copyright (c) 1989 N.G.Taylor
  4. .CHECK +fa
  5. Check both menu types
  6.  
  7. .HEADER
  8.  ~MFile~E│~MOptions~E│~MHelp~E│~AHISTORY $6~C33~Pb@B~E│ $1 - $2
  9. ═════╧═══════╧════╧═════════════╧═════════════════════════════════════════════
  10. .
  11. .FOOTER
  12. ~L22
  13. ═══════════════════════════════════════════════════════════════════════════════
  14.  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
  15. .
  16.  
  17. .MENU File
  18. Directory   |Y@d*.*
  19. Change dir. |C@L*.
  20. Browse dir. |SBrowse
  21. Quit        |Q
  22. .
  23.  
  24. .MENU Options
  25. Setup Colours   |SColours
  26. Show error text |Sperror
  27. Create notepad  |O01;pO.K.
  28. .
  29.  
  30. .MENU Help
  31. Information |NInfo
  32. Selecting   |NSelecting
  33. Key mappings|NHelp
  34. Funct. keys |NFkeys
  35. Notepad     |NNotepad
  36. Colour key  |NKey
  37. .
  38.  
  39. .NOTE Info
  40.    - $9 -
  41.  Frame: $1
  42.  Title: $2
  43.  File : $3
  44.  Date : $4
  45.  Time : $5
  46.  ~ABacktrack ~O2 ~PO2A;NInfo~E with $6 entries
  47.  ~AAutoref ~O4 ~PO4A;NInfo~E
  48.  ~AMenu symbols ~O1 ~PO1A;NInfo~E
  49.  Error status $? ~C32~AClear~PYah;NInfo~E
  50. .
  51.  
  52. .NOTE Key
  53. A ~Mmenu~E gives a menu.
  54. A ~Nnote~E displays a note.
  55. A ~Freference~E allows a
  56. new frame to be selected.
  57. An ~Aaction~E does some
  58. other action.
  59. An ~Iinput field~E permits some
  60. value to be entered.
  61. .
  62.  
  63. .NOTE Notepad
  64. The notepad allows you to store a
  65. reference that you may want to use
  66. later. The INS key adds the reference
  67. pointed at to the notepad, or the
  68. current frame if not pointing at any.
  69. The DEL key deletes a reference.
  70. The NOTEPAD option on the main menu
  71. allows you to select from the notepad
  72. and delete unwanted references.
  73. .
  74.  
  75. .NOTE Selecting
  76. Press LEFT button to select item
  77. Press RIGHT mousebutton to select
  78. control menu. This gives :-
  79. HOME FRAME       CONTENTS
  80. BACKTRACK        SELECT BACK
  81. NOTEPAD          SEARCH
  82. TYPE FILE        DO ACTION
  83. DOS SHELL        EXIT TO DOS
  84. .
  85.  
  86. .NOTE Browser
  87. This is a sample directory browser
  88.  
  89. Select directories to move around.
  90.  
  91. Select text files to type them.
  92. .
  93.  
  94. .SCRIPT Browse
  95. NBrowser
  96. Lpd;Y@L*.*
  97. jspd
  98. J$>
  99. A@Mextns[$>];Jpd
  100. L
  101. L.
  102. A@Mdirectory;Jpd
  103. LTXT
  104. LBAT
  105. LC
  106. A@MText File;Jpd
  107. LEXE
  108. LCOM
  109. Fexec
  110. .
  111.  
  112. Ignore binary files
  113. .MENU extns
  114. OBJ|L
  115. LIB|L
  116. DBF|L
  117. SYS|L
  118. DAT|L
  119. *|T$<
  120. .
  121.  
  122. .MENU Directory
  123. Change to|C$<
  124. List     |DDIR/W $<
  125. .
  126.  
  127. .MENU Text File
  128. Type     |T$<
  129. Edit     |DCSE $<
  130. .
  131.  
  132. .NOTE Help
  133. s    ~NSelecting~Ks~E
  134. i    ~NInfo~Ki~E
  135. f    ~NFunction key layout~PNFkeys~Kf~E
  136. m    ~ANotepad~PA@R~Km~E
  137. g    ~AGo to frame~PF?Which~Kg~E
  138. b    ~ABrowse~PSBrowse~Kb~E
  139. n    ~fNext frame~PF+~Kn~E
  140. c    ~MConfigure~Km~E
  141. q    ~AQuit~PQ~Kq~E
  142. .
  143.  
  144. .CHECK +fa
  145.  
  146. .SCRIPT Colours
  147. Y?Press escape to abort at any time.   (Return to continue)
  148. pChoose Item to change colour of
  149. V[@MItem
  150. pChoose Foreground Colour
  151. V\@MForeground
  152. pChoose Background Colour
  153. V]@MBackground
  154. O$[$\$]
  155. y
  156. .
  157. .CHECK -fax
  158. .MENU Item
  159. Action ref  |A
  160. Menu Choice |C
  161. Title       |D
  162. Frame ref   |F
  163. Menu heading|H
  164. Note heading|J
  165. Note text   |K
  166. Menu ref    |M
  167. Note ref    |N
  168. Menu seln   |O
  169. Pop message |P
  170. Invisible   |Q
  171. Request     |R
  172. Script ref  |S
  173. Frame text  |T
  174. .
  175.  
  176. .MENU Foreground
  177. Black       |K
  178. Blue        |B
  179. Green       |G
  180. Cyan        |C
  181. Red         |R
  182. Magenta     |M
  183. Yellow      |Y
  184. White       |W
  185. Grey        |k
  186. Light blue  |b
  187. Light green |g
  188. Light cyan  |c
  189. Light red   |r
  190. Light magen |m
  191. Light yellow|y
  192. Bright white|w
  193. .
  194.  
  195. .MENU Background
  196. Black       |K
  197. Blue        |B
  198. Green       |G
  199. Cyan        |C
  200. Red         |R
  201. Magenta     |M
  202. Yellow      |Y
  203. White       |W
  204. .
  205.  
  206. .MENU Error text
  207. 1 - Operation cancelled
  208. 2 - Menu no choice
  209. 3 - End of file
  210. 4 - Cant open file
  211. 5 - File not open
  212. 6 - File open
  213. 7 - File changed
  214. 8 - At start of backtrack
  215. 9 - Divide by 0
  216. 10 - Value not expected
  217. 11 - Value expected
  218. 12 - Undefined opcode
  219. 13 - Unmatched parenthesis
  220. 14 - Syntax error
  221. 15 - Script not available
  222. 16 - Menu not available
  223. 17 - Note not available
  224. 18 - Frame not available
  225. 19 - Key not defined
  226. 20 - Invalid key code
  227. 21 - Local ref can't be noted
  228. 22 - Not at reference
  229. 23 - Key not mapped
  230. 24 - No action or disabled
  231. 25 - Invalid action code
  232. 26 - No command
  233. 27 - Env var not present
  234. 28 - Invalid dynamic menu
  235. 29 - Line too wide for screen
  236. 30 - String too long
  237. 31 - Too many lines in frame
  238. 32 - Max script reached
  239. 33 - Maximum menu size reached
  240. .
  241. .CHECK +fax
  242.  
  243. .SCRIPT perror
  244. p@MError text($?)
  245. .
  246.  
  247. .NOTE Fkeys
  248. F1 Help            F2  Browse
  249. F3 Backtrack       F4  Select back
  250. F5 Notepad actions F6  Search text
  251. F7 Type file       F8  Do action    
  252. F9 DOS Shell       F10 Quit
  253. .
  254.  
  255. .SCRIPT SETUP
  256. O#
  257. K#hNHelp
  258. K#qQ
  259. K#iNInfo
  260. K#fNFkeys
  261. K#gF?Name of frame
  262. K#sNSelecting
  263. K#bSBrowse
  264. K#nF+
  265. K#cMConfigure
  266. K#mA@R
  267. KF1MHelp
  268. KM1HELP
  269. Vt°
  270. Vd$
  271. Vsfirst
  272. Vxdog
  273. VZ$d?
  274. V`~APress space bar to continue~Pf+~K ~E
  275. VrY?Press escape to abort at any time.   (Return to continue)
  276. .
  277. .FRAME Browser
  278. .TITLE DOS directory structure browser
  279.  
  280.     MSDOS directory structure browser.
  281.  
  282. [b]    Press This to browse -> ~SBrowse~E
  283.  
  284.     Key 'b' is permanently mapped to Browse.
  285.  
  286. [1]    This hyperfile contains a number of ~Fuseful items~K1~E for
  287.     authors to include in their own hyperfiles
  288.  
  289. [2]    Also some handy ~FGadgets~K2~E are provided for authors
  290. .
  291. .FRAME exec
  292. .TITLE Execute command
  293.  
  294. Command line entry. Enter parameters as required, ESCAPE to cancel.
  295. Reselect any parameter to modify that and subsequent parameters.
  296. Press = to execute or # to cancel and return to browser.
  297.  
  298. $< ~I$A~W10~PVA%s;VB;VC;VD;I~E~Q ~I$B~W10~PVB%s;VC;VD;I~E ~I$C~W10~PVC%s;VD;I~E ~I$D~W10~PVD%s;y~E
  299.  
  300. Select action when ready, or press key.
  301.  
  302. [=]    ~AExecute operation~PD $< $A $B $C $D~K=~E
  303.  
  304. [#]    ~ACancel and return to browser~PFBrowser;SBrowse~K#~E
  305. .
  306. .REMARK
  307. The Input fields above show how to arrange it so that a variable can be
  308. input and displayed, and how other fields can be set as required.
  309. .
  310. .FRAME useful items
  311. .TITLE items for authors to use
  312.     A number of useful items are provided in this hyperfile.
  313.  
  314.     An error number menu provides a useful means of getting the
  315.     text associated with an error status. The action
  316.  
  317.         p@MError text($?)
  318.  
  319.     Will display the error text associated with the last error.
  320.  
  321.     A set of items permit the configuration of colour schemes. These are
  322.     driven by the script 'Colours', which prompts for the scheme to
  323.     configure, then the foreground and background colours for that scheme.
  324.     The script demonstrates some useful effects.
  325.  
  326.     The .HEADER demonstrates how a menu bar of sorts can be set up.
  327.     The .FOOTER shows a function key help line with selectable references
  328.  
  329.     The Info note shows how toggle can be used for options.
  330. .
  331. .CHECK gadget accessories
  332. .FRAME Gadgets
  333. .TITLE Useful accessories for hyperfiles
  334.  
  335. [1]    ~nThe confirm box~PVffeed $x;p@nConfirm~K1~E
  336.  
  337. [2]    The selector - ~n$x~PVx@mselector;y~K2~E
  338.  
  339. [3]    The stepper - ~n$s~PVs@mstepper[$s];y~K3~E
  340.  
  341. [4]    The dialogue box - ~nName input~Pndialogue;y~K4~E  {$n}
  342.  
  343. [5]    ~FDescription~K5~E - Details about gadgets
  344. .
  345. .MENU selector
  346. dog
  347. cat
  348. hamster
  349. goldfish
  350. rabbit
  351. mouse
  352. .
  353. .MENU stepper
  354. first|second
  355. second|third
  356. third|fourth
  357. fourth|fifth
  358. fifth|sixth
  359. sixth|seventh
  360. seventh|eighth
  361. eighth|ninth
  362. ninth|first
  363. .
  364. .NOTE Confirm
  365.      $f
  366.  ┌─────────┐  ┌──────────┐
  367.  │ ~ACONFIRM~PY~E │  │  ~ACANCEL~PN~E  │
  368.  └─────────┘  └──────────┘
  369. .
  370. .NOTE dialogue
  371.  
  372.    Enter your name here
  373.  
  374.    Name: ~I$n~W20~PVn%s;y~E
  375.  
  376. .
  377. .FRAME description
  378. .TITLE details about gadgets
  379.  
  380.     The confirm box is useful for confirming an action before it
  381.     is executed, in cases where some irreversible action is to
  382.     take place. e.g. a file is to be deleted. The confirm box can
  383.     be extended to any number of options.
  384.  
  385.     The selector presents a menu from which a new value for a
  386.     variable can be chosen. The variable can be used as the
  387.     reference text to show the current value.
  388.  
  389.     The stepper is similar to the selector, only allows the set
  390.     of values to be stepped through one at a time.
  391.  
  392.     The dialogue box is used to input a string from the user. It
  393.     is similar to the prompted input action, but it permits extra
  394.     information to be displayed around the input field, such as
  395.     the values of other variables
  396. .
  397.