home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
bookm2.zip
/
basic.inf
(
.txt
)
next >
Wrap
OS/2 Help File
|
1994-09-25
|
11KB
|
200 lines
ΓòÉΓòÉΓòÉ 1. Introduction (Page 1) ΓòÉΓòÉΓòÉ
This file will demonstrate building a simple INF or HLP file. The source for
this file is available as BASIC.IPF.
This type of file can be created simply and easily by inserting pages,
paragraphs, lines and lists, one after the other using BookMaker. Click
forward to see the next page which contains additional enhancements to simple
paragraphs.
This page was created by selecting File/New, typing in a Title and then
clicking on page. At the Insert Heading dialog, I typed in Introduction and
hit return. I then selected Paragraph and typed in each paragraph seperately.
Because Options/Autosave is checked, the file is saved after every dialog is
presented.
ΓòÉΓòÉΓòÉ 2. Page 2 ΓòÉΓòÉΓòÉ
The second page was created the same way as the first. Notice that the res
(resource id) number automatically jumped one. Within the same session, the
res number is automatically increased with every new page.
Click forward to see the next page.
ΓòÉΓòÉΓòÉ 3. Page 3 ΓòÉΓòÉΓòÉ
Surprise
The preceeding word was enhanced. This was done by creating the word with a
paragraph tag and then selecting the word in the main BookMaker window. I then
clicked font and at the Font Dialog selected Helv 48x28. The new font was
added to the begining of the selected word and the defaults were placed at the
end of the word. In the following paragraph the same is done only this time an
entire paragraph is selected.
The words in this paragraph are enhanced in two ways. First they are selected
and the Font is changed. They are selected once again and the color is
changed. (It's OK to select the font tags with the text. Just be sure to get
the whole thing.)
You can select almost anything and apply tags to your selection. The
exceptions are artwork, tables, lists, and autotags.
ΓòÉΓòÉΓòÉ 4. Page 4 (Primary) ΓòÉΓòÉΓòÉ
This page is listed as primary. The box preceeding the heading in the TOC
indicates that there is a sub-heading. Press forward to see the next page.
ΓòÉΓòÉΓòÉ 4.1. Page 4 Level 2 ΓòÉΓòÉΓòÉ
When this Heading was created I selected Heading 2. This made the window a
sub-heading of Page 4
ΓòÉΓòÉΓòÉ 5. Page 5 Lines ΓòÉΓòÉΓòÉ
In this page we'll use lines of text. Using this tag you won't have to add a
paragraph for each line.
This is the first line.
This is the second.
This is the third.
These lines are left justified.
This is a single line that is centered
This is a single line that is right justified.
Notice that we changed the font and color.
ΓòÉΓòÉΓòÉ 6. Page 7 Lists ΓòÉΓòÉΓòÉ
This page demonstrates lists.
This is a caption (optional):
1. Item 1
a. This list is placed within another
2. Item 2
3. Item 3
4. Remember this is an ordered (numbered) list
This is an unordered list:
o Item 1
o Item 2
o Item 3
This is a simple list:
Item 1
Item 2
Item 3
Notice that this list is compact
In the last list I changed the font.
ΓòÉΓòÉΓòÉ 7. Page 8 Example Text ΓòÉΓòÉΓòÉ
This page contains the example tag. Notice that the font is automatically
changed. This is used mostly for code examples.
#define INCL_DOS
#include <os2.h>
#include <malloc.h>
#include <process.h>
#include <stdio.h>
#include <stdlib.h>
int main( int argc, char * argv[] );
void childcode( void * arg );
typedef struct /* the thread information structure */
{ /* */
unsigned count; /* the number of times to display the text */
HEV hev ; /* the individual thread's event semaphore */
} THREAD_INFO ; /* handle */
ΓòÉΓòÉΓòÉ 8. Page 9 (Highlighted Text) ΓòÉΓòÉΓòÉ
Within this paragraph are selected words with various highlight
characteristics. This was done by selecting certain words within the paragraph
and selecting Highlight.
ΓòÉΓòÉΓòÉ 9. Page 10 (Graphics) ΓòÉΓòÉΓòÉ
Graphics are one of the main enhancements to any INF file. This and the
following page include Three graphics examples.
ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
Γöé Γöé
Γöé This is a Character Γöé
Γöé Graphics example. Γöé
Γöé Its a simple way to Γöé
Γöé to create boxesΓöîΓöÇΓöÇΓöÇΓöÇΓöÉ Γöé
Γöé Γöé Γöé Γöé
Γöé ΓööΓöÇΓöÇΓöÇΓöÇΓöÿ Γöé
Γöé and the like. Γöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
Γöé It takes some practice! Γöé
ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
This is a left aligned bitmap.
Click forward to see the same bitmap as a full page graphic.
ΓòÉΓòÉΓòÉ 9.1. Full Page Graphic ΓòÉΓòÉΓòÉ
In this example fit to page was selected. The picture is stretched so it
appears strange. You can manipulate pages to fix this. See Windows.INF for
details on this.
ΓòÉΓòÉΓòÉ 10. Table ΓòÉΓòÉΓòÉ
ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
ΓöéComputer Γöé Monitor Γöé CD-ROM Γöé Modem Γöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
ΓöéPentium Γöé NEC Γöé NEC Γöé Hays Γöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
Γöé486 Γöé STAR Γöé Creative Γöé PracticalΓöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
Γöé386 Γöé IBM Γöé Philips Γöé ZOOM Γöé
ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
This table was created by selecting the table option and inserting text into
each listbox. The width of each column was changed to ten. Keep in mind that
you must fill all spaces in the first column for the other rows you wish to
show. For example if the first column contains 4 items and one of the others
contains five, you must insert a blank space into the first column to make up
the difference.
ΓòÉΓòÉΓòÉ 11. A final word... ΓòÉΓòÉΓòÉ
Keep in mind that all rules for your IPF compiler still apply. You can get a
better idea of what's really possible and not possible by going through
ipfc20.inf(included with your IPF compiler) first.
My old bosses always got mad at me because I always made them read the manual!
If you're new to IPF creation, play with the basics first. When you're ready,
read the Linking.INF file.