Winhelp Tips
Adding a web link to a 32-bit help file The compiler reports a browse sequence
errorTesting the browse sequence
Using command line options when starting Changing the title of the active window
Getting the programmer to open a CNT fileGetting the 4.1 winhelp compilers
HC4010: There are more opening braces than closing braces Font error Tables with borders in Winhelp Adding a web link to a 32-bit help file You can't do this in a 16-bit help
- Select the text that you want to link.
- Underline it, and make it whatever color your hot text is.
- Immediately after the hot text, add the following as hidden text:
!Internet("http://www.winhelp.net") Top
The compiler reports a browse sequence and you donīt use one The compiler reports one or more browse sequences set, but Browse buttons are not enabled in any window. What to do?
Create a window that you do not use. For example, call it Bob. Then assign browse buttons to it. Donīt use it in the help when you build and the problem goes away. Top Testing the Browse Sequence To browse help topics sequentially using Ctrl-Shift-arrow key, add
the following to the [Windows Help] section of your WIN.INI file: SeqTopicKeys=1 Top
Using command line options when starting
You can use command line switches when you start winhelp. Chain several together with a space between each one. The syntax is: winhelp [-g -h -i -k -n -p -w] myhelp.hlp The switches are: -g :build GID file and quit -h :show help about help -i <id>:show the topic id -k <keyword>:show the keyword
-n <context number>:show the context number -p : show the topic in pop-up window -w <window name>: show the topic in the named window Top Changing the title of the active window You can't do this in a 16-bit help
In the [CONFIG] section of your .hpj, type: RR(`user',`SetWindowText',`v=US') RR(`user',`GetParent',`U=U')
Make a topic level macro for each topic, like: SetWindowText(GetParent(hwndContext), `The new title is entered Here') Top
Getting the programmer to open a CNT file To call the contents tab from the application, the programmer has to
call the help file using a WinHelp API call and pass the parameter help_finder. help_finder is the parameter used to call the Contents tab from a program.
There is nothing for you to do with the help file except make sure that the .HLP and .CNT files are in the same directory. Getting the version 4.1 help compilers Normally, you don't need these compilers. However, there seems to
be a special circumstance when you are using at least Japanese where the more current compilers won't work correctly. In this case, you need these.
The zip file has 3 files in it: hcrtf.exe, hcw.exe, and hwdll.dll. When you unzip, copy these in the same folder that has your current ones. Remember to copy the original files to another location so you can
get them back if you need to. Click here to download the 4.1 compiler HC4010: There are more opening braces than closing braces.
The error message is triggered by single or double quotes in any of the hyperlink text in your RTF files. To avoid it, remove these quotes.
Leaving this error does not affect your help file. Font Error during compile Add ignore statements to the .hpj file. For example: Ignore=3096 ; Font name too long Tables with borders in Winhelp The winhelp compiler strips out any table formatting you apply,
regardless of the tool you use. There is an easy way to get the borders, etc., back. Create your table in Excel. When it looks right, save it (in your
project directory is best) and import it into your HAT as an embedded object. In Word, that is Insert | Object. Select Excel and then select
the table you created. The downside is that when you move files or do your final backup at the end of the project, remember to include any spreadsheets you imported this way.
© 2000 Anthrobytes Consulting Hosted by PageWeavers.com
All trademarks belong to their respective owners. All opinions expressed are just that, opinions. Last modified Wednesday, 09 May, 2001. |