How do I create my own Master Help Index?
I talked with the owner of the Master Index, and she said there is no problem
with using a like index to view online documentation for your application.
There are just a few catches:
The documentation must be compiled as an .HLP
file and not an .INF file. Note that this is the default for IPFC.
The tagged indexed entries must have the "global"
attribute. For example:
- i1 global.giving examples
or:
- i1 id=examp global.giving examples
3.
The Index executable is a WPS object, not a standalone
application. You will need to create your own copy of the object (instance)
of class Mindex, either by using a REXX script (e.g. SysCreateObject())
or within your app (e.g. WinCreateObject()).
For a REXX example:
CALL SysCreateObject "Mindex", "Title", "<WP_DESKTOP>",
"INDEX=MYFILE;OBJECTID=<MY_INDEX>"
where MYFILE can be an environmental variable set to the path or filespec
of your .HLP files, or it can be the actual filespec itself (e.g. INDEX=c:\myapp\myfile.hlp
). Note too that files can be concatenated (e.g. INDEX=c:\myapp\myfile.hlp+c:\yourapp\yourfile.hlp).
4.
Objects of Mindex class
CAN NOT be subclassed. There are no public methods in this class and it
must be used as is.
Credit: John Webb
[Back: How do I make a multi-column listbox?]
[Next: How do I change the font in an MLE?]