Source Code File for MiniHelp Plus
Depersn1.src

Back to Part 2, Design the WinHelp File

Depersn1.src

This source file, for use by MiniHelp Plus, is the first of two source files to be used in building the .hpj project file and the .rtf topic file for the Daniel phone book.

The first part of the source file sets up the .hpj project file. It defines the window title that will be displayed for the help file, a copyright date, additional buttons and menu items for the help file, and a startup macro that brings to view the pop-up topic "instruc".

Next in the source file are the topics "instruc" and "datestamp"; they are viewed in pop-up windows. Finally, comes the topic "contents", and it is the first topic that appears in the main window of the help file. It lists all of the entries of the phone book, so the user can scroll through the whole list, or print it to make an offline 'hardcopy' version of the phone book.

The last line in this source file, ".include depersn2.src", tells MiniHelp Plus to continue compiling the .rtf topic file from file depersn2.src as though file depersn2.src is part of the first source file, depersn1.src, resulting in one .rtf topic file, depersn1.rtf.

The Windows help compiler then uses depersn1.rtf and the project file, depersn1.hpj, to compile the end-result WinHelp file, depersn1.hlp.


Depersn1.src

.hpjbitmap danlogo4.wmf
.hpjopt title=Phonebook for Daniel Publications
.hpjopt compress=medium
.hpjopt copyright=Copyright 1996, Daniel Industries
.hpjopt report=1
.hpjopt warning=3
.hpjopt contents=contents
.hpjconfig CreateButton("btn_exit","E&xit","Exit()")
.hpjconfig CreateButton("btn_print","&Print","Print()")
.hpjconfig CreateButton("btn_date","&Date","PI(`depersn1.hlp',`datestamp')")
.hpjconfig BrowseButtons()
.hpjconfig AppendItem("mnu_help","mnu_foo","&Find a Record", "PI(`',`instruc')")
.hpjconfig Popupid("","instruc")
.hpjwin main = , , 0, (255,255,255) , (192, 192, 192), 0

.topic instruc
.fontsize 11
To
.bold find a particular phonebook record,
click on the
\par\pard
.bitmap btn_srch.bmp
 button above.
\par\pard
\sb150
In the pop-up "Search" dialog window, type in the first letters
\par\pard
of the search term until it appears in the scrollable list.
\par\pard
\sb150
Then double-click on the record name, and click on the
\par\pard
.bitmap btn_goto.bmp
 button.

.topic datestamp
.fontsize 11
This Help file was last updated on 20 November 1997.
\par\pard
\par\pard
For corrections, additions, or revisions, notify John Reynolds,
 Technical Publications, Daniel Instruments, 713-827-4861.

.topic contents
.title Daniel Electronics Technical Publications Phonebook
.browse 0
\keepn

.bitmap danlogo4.wmf
\par
\par
.bold Daniel Technical Publications Phonebook

\par\pard
\sb200
\li000
.fontsize 12
.bold John Reynolds
\par\pard
.fontsize 11
\li300
Work phone: 999-999-9999
\par\pard
\li300
FAX phone: 999-999-9999
\par\pard
\li300
\par\pard
\li300
Address:
\par\pard
\li1200
Technical Publications
\par\pard
\li1200
      
\par\pard
\par\pard
\li300
-------- NOTES --------
\par\pard
\li300
Technical Writer, specializing in Daniel gas chromatograph products, WinHelp files, and Web pages.
\par\pard
\par\pard
\sb200
\li000
.fontsize 12
.bold Larry Reynolds
\par\pard
.fontsize 11
\li300
Work phone: 999-999-9999
\par\pard
\li300
\par\pard
\li300
Address:
\par\pard
\li1200
Technical Publications
\par\pard
\li1200
      
\par\pard
\par\pard
\li300
-------- NOTES --------
\par\pard
\li300
Graphic illustrations specialist.
\par\pard
\par\pard
\sb200
\li000
.fontsize 12
.bold Linda Reynolds
\par\pard
.fontsize 11
\li300
Work phone: 999-999-9999
\par\pard
\li300
\par\pard
\li300
Address:
\par\pard
\li1200
Technical Publications
\par\pard
\li1200
      
\par\pard
\par\pard
\li300
-------- NOTES --------
\par\pard
\li300
Editor-in-chief
\par\pard
\par\pard
\qc
.fontsize 10
This table produced by
.bold Daniel Industries
, 20 November 1997

.include depersn2.src

Back to Part 2, Design the WinHelp File

©1997 John C. Reynolds III - last updated 1997 November 20
http://www.compassnet.com/jreynold/whdb_1a.htm