Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

9 Generating Microsoft HTML Help > 9.7 Creating related-topic links for HTML Help > 9.7.4 Rolling your own macros for ALink jumps in HTML Help


9.7.4 Rolling your own macros for ALink jumps in HTML Help

To use a paragraph format (for example, ALinkJump) for ALink jumps, you can assign property CodeReplace to the format to replace the paragraph with a button for the ALink jump:

[HTMLParaStyles]

ALinkJump=CodeReplace

[HtmlParaStyleCodeReplace]

ALinkJump=<$ALinkButton>

[ALinkButton]

<object id="hhctrl" type="application/x-oleobject"

classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"

width="100" height="100">

<param name="Command" value="ALink">

<param name="Button" value="Text:Related topics">

<param name="Flags" value="1">

<param name="Item1" value="">

<param name="Item2" value="first ALink keyword">

  . . .

  <param name="ItemN" value="last ALink keyword">

</object>

"Item1" in the macro definition specifies the path to the CHM file that contains the target topic(s); an empty value means the current CHM file.

"Item2" through "ItemN" in the macro definition each specify the value of an ALink keyword; see HTML Help Workshop Help for more information. You would have to edit the macro for each different ALink keyword.

However, instead of dedicating a special paragraph format to ALink jumps, you can provide additional macros to produce ALink jumps from the paragraph format (or marker type) you use for ALink keywords; see §9.7.5 Using the same format or marker for ALink keywords and jumps



9 Generating Microsoft HTML Help > 9.7 Creating related-topic links for HTML Help > 9.7.4 Rolling your own macros for ALink jumps in HTML Help