home *** CD-ROM | disk | FTP | other *** search
- Turbo-Fake Help Function
-
- Version 1.0
-
- By Kevin Beiter
- 2/14/1990
-
-
- This is a program to write help screens for your own Turbo Pascal
- procedures and functions. It does not use Turbo Pascal's help function,
- but it includes a TSR program that works just like it. Hence the name,
- Turbo-Fake.
-
- What you must do, is make the help screen for each procedure or function,
- and add the procedure names, and the page numbers on which they are located,
- to the lookup table. Then, when you are in the integrated environment, just
- move the cursor to your procedure name, and press LeftShift-F1. Your help
- screen will be displayed, which can show the syntax of that procedure, and can
- reference you to help on other procedures or topics.
-
-
- Turbo-Fake consists of the following files:
-
-
- HLPPOP.EXE : Turbo-Fake Help program
- HLP.EXE : Non-resident version of HLPPOP.EXE
- HLPMAKE.EXE : Turbo-Fake Help Maker program
- HLPLOKUP.EXE : Turbo-Fake Help lookup table
- HLP.HLP : Turbo-Fake Help data file
- HLP.IDX : Turbo-Fake Help lookup table
- HLPCOLOR.DAT : File containing your color preferences
-
-
-
- I.HLPMAKE.EXE
-
-
- This is the program you use to make your help screens. Help screens are
- made by typing them in, highlighting references to help on other topics
- (procedures,units, etc.), and adding those reference names to the lookup table.
-
- Words that are highlighted in HLPMAKE, are words that the user can
- position a highlight bar upon and view the help about, when HLPPOP or HLP is
- running. Words that are highlighted in HLPMAKE, are NOT in the lookup table,
- until you specifically put them there.
-
- Words can be added to the lookup table by executing HLPLOKUP. This can
- be done from HLPMAKE by pressing F1.
-
- Help on any given topic or procedure, can be multiple pages. All that
- you must do, is press F7, and type in the corresponding page numbers of the
- help screens that should display when you press PgUp/PgDn in HLPPOP or HLP.
-
- The colors for HLPPOP and HLP can be changed by pressing F9. The new
- colors will be displayed in HLPMAKE as you change them.
-
-
- Key definitions for HLPMAKE:
-
- F1 : Execute HLPLOKUP. See the section about HLPLOKUP
- F2 : Save the current page of help.
- F3 : Load a page of help.
- F4 : Make a new page of help.
- F5 : Highlight a word so it's help screen can be looked up from HLPPOP/HLP.
- F6 : Remove the highlighted area that the cursor is on.
- F7 : Change the help pages that will be displayed when PageUp and PageDown
- are pressed in HLPPOP and HLP. If they are zero, or the same as the
- current page, pressing PageUp and PageDown in HLPPOP/HLP, will stay
- on the current page.
- F8 : Clear the text and/or highlighted areas on the page.
- F9 : Change the default color set.
- F10: Displays a help screen about the function keys.
- Ctrl-Y deletes the current line of text.
- PgUp loads previous page of help.
- PgDn loads next page of help.
- INSERT turns insert mode on and off.
- ESC exits the program
-
- HLPMAKE beeps whenever a page is saved. Also, there can be a maximum of
- 30 different areas highlighted on any one page.
-
- The color set is stored in the file HLPCOLOR.DAT, and the default colors
- are the same as the default colors for Turbo Pascal 5.5.
-
- Although it is not necessary to know the structure of the help data file
- to use Turbo-Fake Help, it is stored in the file HLP.HLP which is a file of
- the following Pascal type:
-
- PageType = Record
- Info : Array[1..660] of Byte;
- PageUp,PageDown,TotalLookups : Integer;
- Lookup : Array[1..30] of Record
- X,Y,Len : Integer;
- End;
- End;
-
-
- II.HLPLOKUP.EXE
-
- This is the program used to make the lookup table. What you must do, is
- type in the words can be looked up, and the pages of help they are located on.
- This program can be executed by pressing F1 in HLPMAKE.
-
- If you try to save the same lookup name twice, in different records, an
- error message will display. Also, you can find a name in the lookup table, by
- typing in something close to it, and pressing F3.
-
- Key definitions for HLPLOKUP:
-
- F2 : Save the current record
- F3 : Find the name closest to the name typed in.
- F4 : Clear the entry fields so a new record can be added.
- F6 : Delete the current record.
- PgDn : Find the next record alphabetically
- PgUp : Find the previous record alphabetically
- ESC : Exit
-
- Names can only be 25 letters long, and like HLPMAKE, HLPLOKUP beeps when
- a record is saved. All entries are in capital letters, because Turbo-Fake Help
- isn't case sensitive. The lookup table is stored in the file HLP.IDX, which is
- a file of the following Pascal type:
-
- RecType = Record
- Name : String[25];
- Page : Integer;
- End;
-
- Again, knowing the file structure is not necessary to use Turbo-Fake Help,
- but is provided for those interested.
-
-
- III.HLPPOP.EXE
-
- This is a memory resident program that is used to pop up the help screens
- that have been created with HLPMAKE.EXE. It is activated by pressing
- LeftShift-F1.
-
- When you press LeftShift-F1, if the cursor is on a word that is in the
- lookup table, the help for that word will be displayed. If not, the first
- page of the help file will be shown. This page is intended for an index of
- some sort, although you can put whatever you like there.
-
- Key definitions for HLPPOP:
-
- F1 : Page 1 (index)
- PgUp : View previous page of help.
- PgDown : View next page of help.
- Arrows : Position the highlight bar
- ENTER : Show help on the highlighted word.
- ESC : Exit
-
- There are a couple bugs/problems with using HLPPOP.
-
- 1. If you press LeftShift-F1 to activate it, during execution of
- any program written in Turbo Pascal, your computer will most likely
- freeze up. It will work fine from the integrated environment, as
- long as you are just editing when you activate it.
-
- 2. If you activate it while running HLPMAKE.EXE, HLPLOKUP.EXE, or
- HLP.EXE, your computer will freeze up. That follows from the first
- problem, since all these programs were written in Turbo Pascal.
-
- It can be removed from memory by typing HLPPOP /R in DOS.
-
-
- IV.HLP.EXE
-
- This is a non-memory resident version of HLPPOP.EXE.
-
-
- V.MISCELLANEOUS
-
- You can specify the directory in which Turbo-Fake resides, by setting
- a DOS environment variable called HLPDIR. The programs will look for the
- data files in that directory. If there is no HLPDIR set, they will look
- in the current directory.
-
- When you set HLPDIR, make sure you have a backslash ("\") at the end of
- the directory name. For example,
-
- SET HLPDIR=C:\TP55\HLP\
-
-
- Included is a sample help datafile and lookup table which you can use to
- experiment with. To make your own help files, delete the HLP.HLP and HLP.IDX.
-
-
-
- This is Public Domain, so feel free to copy it.
-
-
- Any suggestions or comments can be sent to:
-
- Kevin Beiter
- 3829 Logans Ferry Road
- Pittsburgh, PA 15239
-
- Email : kb36+@andrew.cmu.edu(internet)
-
-