home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
CSAPE32.ARJ
/
EXAMPLES
/
DEMOFRAM.HLP
< prev
next >
Wrap
Text File
|
1991-03-09
|
4KB
|
195 lines
demofram.hlp
C-scape 3.2 Example Framer Help File
Copyright (c) 1989, 1990 by Oakland Group, Inc.
ALL RIGHTS RESERVED.
Help file for demofram.c
Revision History:
-----------------
03/10/90 pmcm
The messages MUST be list in increasing message number order. That is,
message N must occur before message N+1 in the file.
Message numbers must be >= 0.
In this file, message numbers begin with #1 and continue sequentially in
increments of one. The messages need not sequence in increments of one but
we do so for clarity and ease of maintenance.
The help index is a two dimensional array of integers. The integers are the
message numbers. The array indices are the chapter and paragraph. The
highest chapter and highest paragraph numbers in the help file determine
the size of the array.
For example, suppose a help file contained only these message mappings:
50,0:1
50,1:2
50,2:3
In the above example, the help array allocated would be an array of
150 integers (50 by 3). This is because the highest chapter is 50;
the highest paragraph 2 (we add one to the paragraph because they are
0-indexed while chapters are 1-indexed).
In this file and in demofram.c, chapter numbers begin with #1 and continue
sequentially in increments of one so as not to waste space in the help
index array.
Chapters must be > 0.
Paragraphs must be >= 0. If the help function is invoked for a chapter and
paragraph for which no message exists then paragraph 0 is used to
find the default message for the chapter. If the is no message for
chapter 0 paragraph 0 then the help function does nothing.
There is detailed help only for the "Help!" album just to keep this demo
file small.
Rubber Soul, Revolver, and Sgt. Pepper use paragraph 0 and thus have only
one generic help message each.
%%
!Help! album help
1,0:1
!Help! album - song specific help
1,1:2
1,2:3
1,3:4
1,4:5
1,5:6
1,6:7
1,7:8
1,8:9
1,9:10
1,10:11
1,11:12
1,12:13
1,13:14
1,14:15
!Rubber Soul album - generic help
2,0:16
!Revolver album - generic help
3,0:17
!Sgt. Pepper album - generic help
4,0:18
%%
.1
Help!
The "Help!" album
(Chapter 1, Paragraph 0 : Message 1)
.2
Help!
"Help!"
(Chapter 1, Paragraph 1 : Message 2)
.3
Help!
"The night before"
(Chapter 1, Paragraph 2 : Message 3)
.4
Help!
"You've got to hide your love away"
(Chapter 1, Paragraph 3 : Message 4)
.5
Help!
"I need you"
(Chapter 1, Paragraph 4 : Message 5)
.6
Help!
"Another girl"
(Chapter 1, Paragraph 5 : Message 6)
.7
Help!
"You're going to lose that girl"
(Chapter 1, Paragraph 6 : Message 7)
.8
Help!
"Ticket to ride"
(Chapter 1, Paragraph 7 : Message 8)
.9
Help!
"Act naturally"
(Chapter 1, Paragraph 8 : Message 9)
.10
Help!
"It's only love"
(Chapter 1, Paragraph 9 : Message 10)
.11
Help!
"You like me too much"
(Chapter 1, Paragraph 10 : Message 11)
.12
Help!
"Tell me what you see"
(Chapter 1, Paragraph 11 : Message 12)
.13
Help!
"I've just seen a face"
(Chapter 1, Paragraph 12 : Message 12)
.14
Help!
"Yesterday"
(Chapter 1, Paragraph 13 : Message 14)
.15
Help!
"Dizzy miss lizzie"
(Chapter 1, Paragraph 14 : Message 15)
.16
Rubber Soul
Generic help for the "Rubber Soul" album
(Chapter 2, Paragraph 0 : Message 16)
.17
Revolver
Generic help for the "Revolver" album
(Chapter 3, Paragraph 0 : Message 17)
.18
Sgt. Pepper
Generic help for the "Sgt. Pepper" album
(Chapter 4, Paragraph 0 : Message 18)
.END