#### 18.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:

    [HtmlStyles]
    ALinkJump=CodeReplace

    [HtmlStyleCodeReplace]
    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 "Item N" 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 §18.7.5 Using the same format for ALink keywords and jumps

Previous Topic: 18.7.3 Configuring ALink and KLink jumps for HTML Help

Next Topic: 18.7.5 Using the same format for ALink keywords and jumps

Parent Topic: 18.7 Creating related-topic links for HTML Help

Sibling Topics:

18.7.1 Adding ALink keywords for HTML Help

18.7.2 Adding ALink and KLink jumps for HTML Help

18.7.3 Configuring ALink and KLink jumps for HTML Help

18.7.5 Using the same format for ALink keywords and jumps

18.7.6 Creating buttons for other types of related-topic links