Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

8 Generating WinHelp > 8.9 Creating jumps and pop-ups for WinHelp > 8.9.11 Configuring alternative jumps and pop-ups > 8.9.11.5 Assigning properties to alternative jumps and pop-ups


8.9.11.5 Assigning properties to alternative jumps and pop-ups

If the hotspot text is the same as the target’s reference string, apply a character format, and assign that format property JumpHot for a jump or PopHot for a pop-up. For example:

[HelpStyles]

GlossJump=JumpHot Green Key

PopUpDef=PopHot Green Uline

If the target is a topic, its reference string is already coded: it is the same as the topic title.

If the target is not a topic, identify the target’s reference string by applying a character format coded JumpTarget for jumps or PopContent for pop-ups. A JumpTarget, sometimes called a mid-topic jump, can also have the word Contents in its definition, so that it appears in the .cnt file; see §8.13 Configuring contents for WinHelp:

[HelpStyles]

GlossTerm=JumpTarget Key Contents

LocalPop=PopContent

If the target is a fixed reference regardless of the text to which the style is applied, add Refer to the character format coding, and add a [HelpRefStyles] entry for the character format. For example, suppose you want to apply character format Fruits to make “apple”, “orange”, and “pear” hotspots, but in every case jump to the topic “fruit salad”:

[HelpStyles]

Fruits=JumpHot Refer Green

[HelpRefStyles]

Fruits=fruitsalad

If the hotspot text is the same for several items but you want a JumpHot or PopHot to go to different references, you must use four character formats, and add Suffix to the coding for each. For example, suppose at one point you want to mark Apple to jump to Apple Computer, and at another place in the same file you want to mark Apple to jump to Apple Records. You could define character formats Comp, CompRef, Record, and RecRef, and code them as follows:

[HelpStyles]

Comp=JumpHot Suffix Green

CompRef=JumpTarget Suffix

Record=JumpHot Suffix Green

RecRef=JumpTarget Suffix

[HelpSuffixStyles]

Comp=comp

CompRef=comp

Record=rec

RecRef=rec

You would apply CompRef and RecRef to the word Apple in targets Apple Computer and Apple Records, respectively. Then wherever else you apply Comp to Apple, you get a jump to Apple Computer; and wherever else you apply Record to Apple you get a jump to Apple Records.



8 Generating WinHelp > 8.9 Creating jumps and pop-ups for WinHelp > 8.9.11 Configuring alternative jumps and pop-ups > 8.9.11.5 Assigning properties to alternative jumps and pop-ups