home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
editors
/
hypsh40b.arj
/
HYPDEVEL.LZH
/
MENUBAR.HYP
< prev
next >
Wrap
Text File
|
1991-04-24
|
7KB
|
306 lines
.REMARK
Menubar style hyperfile template
Copyright (c) 1990 N.G.Taylor
.CHECK +fa
Check both menu types
.HEADER
~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}
╔══╧════════╧════════╧══════╧════════╧═══════╧══════════════════════════════╗
╚╡~DU ~Tw $1 - $2 ~h/~C72~DV<*>~DU~Z~C76~DT╞╝
.
.MENU File
Type file |T?File name
───────────|
Command |D?Command line
DOS shell |D
───────────|
About a|NAbout
Quit F10 q|Q
.
.MENU Search
Title search |A@S?Search string
Search Text F6|A@X?Search string
Pick and search|SPicksrch
───────────────|
Add to search |O*64;MSearch
Refine search |O*63;MSearch
───────────────|
Matched flag ± |ZL/
───────────────|
Next matching |F+1
List matching l|A@C1
Unmatched list |A@C2
.
.MENU Contents
Contents list F2|A@C
From current |A@C3$1
Starting with |A@C0?Starting with
────────────────|
{Other types} |
.
.MENU Goto
Next frame n|F+
Matching frame m|F+1
Previous frame p|F-
Home frame |b1
───────────────── |
Backtrack one b|B
Unwind backtrack F4|b@B
Revisit frame |A@b
───────────────── |
Select noted ref F5|A@R
.
.MENU Other
Action F8|A?What action
Calculator |SCalculator
Example |FExample script
Print frame |Dhp -p -o hsref $1
Set colours |Scolours
Last error |Sperror
.
.MENU Help
Selecting |NSelecting
Key mappings |NKey mappings
Funct. keys |NFkeys
Menu bar |NMenu bar
Information i|NInfo
Colour key |NKey
Paged lists |MPaged Help
.
.MENU Paged Help
Control Keys |NPaged control keys
Paged lists |NPaged lists
Selecting |NSelecting
.
.CHECK -fax
.MENU Item
Action ref |A
Menu Choice |C
Title |D
Frame ref |F
Menu heading|H
Note heading|J
Note text |K
Menu ref |M
Note ref |N
Menu seln |O
Pop message |P
Invisible |Q
Request |R
Script ref |S
Frame text |T
.
.MENU Error text
1 - Operation cancelled
2 - No selection from menu
3 - End of file
4 - Cant open file
5 - File not open
6 - File open
7 - File changed
8 - At start of backtrack
9 - Divide by 0
10 - Value not expected
11 - Value expected
12 - Undefined opcode
13 - Unmatched parenthesis
14 - Syntax error
15 - Script not available
16 - Menu not available
17 - Note not available
18 - Frame not available
19 - Key not defined
20 - Invalid key code
21 - Local ref can't be noted
22 - Not at reference
23 - Key not mapped
24 - No action or disabled
25 - Invalid action code
26 - No command
27 - Env var not present
28 - Invalid dynamic menu
29 - Line too wide for screen
30 - String too long
31 - Too many lines in frame
32 - Max script reached
33 - Maximum menu size reached
.
.NOTE About
{About the application}
.NOTE Paged lists
Type contents of file
Search titles or texts
Detailed directory list
Contents list
Backtrack list
Noted references list
.
.NOTE Paged control keys
F1 or ? - This help
F2 or # - Page number (*T)
F3 or PgUp - Previous page
F4 or Home - Start of list/file
F5 - Find next (*T)
F6 or / - Search file (*T)
F8 or End - End of file (*T)
F9 - Quit (*T Suspend list)
F10 - Quit (*T Quit list)
Return - Select (*T Suspend)
(*T - Type file control keys)
.
.NOTE Info
- $9 -
Frame: $1
Title: $2
File : $3
Date : $4
Time : $5
~ABacktrack ~O2 ~PO2A;NInfo~E with $6 entries
~AAutoref ~O4 ~PO4A;NInfo~E
Error status $? ~C32~AClear~PYah;NInfo~E
.
.NOTE Menu bar
The menus on the menu bar can be
selected using their initial
letters. With a menu on display,
the options can be selected with
the initial letter of the option.
.
.NOTE Key mappings
The following key mappings
are always provided:-
q Quit HyperShell
n Next frame
p Previous frame
b Backtrack one step
m Next matching frame
.NOTE Key
A ~Mmenu~PNKey~E gives a menu.
A ~Nnote~PNKey~E displays a note.
A ~Freference~PNKey~E allows a
new frame to be selected.
An ~Aaction~PNKey~E does some
other action.
An ~Iinput field~PNKey~E permits some
value to be entered.
.
.NOTE Notepad
The notepad allows you to store a
reference that you may want to use
later. The INS key adds the reference
pointed at to the notepad, or the
current frame if not pointing at any.
The DEL key deletes a reference.
The NOTEPAD option on the main menu
allows you to select from the notepad
and delete unwanted references.
.
.NOTE Selecting
Use the cursor keys or the TAB and
SHIFT/TAB keys to move to a reference
Press RETURN to select the reference.
Press ESCAPE for the control menu, or
to cancel a menu, note or list.
When using a mouse, move mouse to
position cursor to select a reference,
Press LEFT mouse button to select.
Press RIGHT mouse button for the
control menu or to cancel a menu,
note, or list.
See Also:- ~NFunction keys~PNFkeys~E
.
.NOTE Colour choice
Select $\ground colour
~F~BW~TKBlack~PK~E~BK ~F~TBBlue~PB~E ~F~TGGreen~PG~E ~F~TCCyan~PC~E
~F~TRRed~PR~E ~F~TMMagenta~PM~E ~F~TYBrown~PY~E ~F~TWWhite~PW~E
~F~BW~TkGrey~Pk~E~BK ~F~TbBlue~Pb~E ~F~TgGreen~Pg~E ~F~TcCyan~Pc~E
~F~TrRed~Pr~E ~F~TmMagenta~Pm~E ~F~TyYellow~Py~E ~F~TwWhite~Pw~E
Choose bright for blink
on backgrounds
.
.NOTE Fkeys
F1 Help F2 Full Contents
F3 Backtrack F4 Select back
F5 Notepad F6 Search text
F7 Type file F8 Do action
F9 DOS Shell F10 Quit Program
See also: ~NKey mappings~E
.
.CHECK +fa
.SCRIPT Colours
Y?Press escape to abort at any time. (Return to continue)
pChoose Item to change colour of
V[@MItem
V{@NColour choice(Fore)
V]@NColour choice(Back)
O$[${$]
y
.
.SCRIPT Calculator
Ve?Enter expression (x = last result $x)
Vx=$e
pExpr $e = $x
.
.CHECK +fax
.SCRIPT perror
p@MError text($?)|Error %s
.
.SCRIPT Picksrch
pPick a word with the mouse
P;Ve&P;abq
A@X$e
.
.SCRIPT SETUP
O#
O16
O*11
OUwK
OVrk
OTWB
KF1MHelp
KM1HELP
KH4SMENBAR
KH3Paged Help
K#nF+
K#pF-
K#bB
K#mF+1
K#qQ
K#iNinfo
K#aNHyperShell
K#lA@C1
Vsfirst
VZ$d?
VrY?Press escape to abort at any time. (Return to continue)
.
.SCRIPT MENBAR
ZX1;ZY1
.
.INDEX
.REMARK
--------------------------- FRAME SECTION ----------------------------------
.
.FRAME First frame
.TITLE Title of first frame
t.b.s.
.