Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

8 Generating WinHelp > 8.10 Invoking WinHelp macros > 8.10.2 Assigning a hotspot property to invoke a macro


8.10.2 Assigning a hotspot property to invoke a macro

If you reference the same external file from several places in your document, you can dedicate a hotspot character format to this purpose. You assign property MacroHot to the character format, and provide a definition for the macro. For example:

[HelpStyles]

ShowAvi=MacroHot

[HelpMacroStyles]

ShowAvi=EF('yourname.avi')

The MacroHot property works the same way as JumpHot (see §8.9.11.2 Creating alternative jumps), except that instead of using the marked text as the reference string for a jump, Mif2Go provides a predefined WinHelp macro. For example:

[HelpStyles]

FarTarget=MacroHot

[HelpMacroStyles]

; Topic Macro and MacroHot have a required macro content

FarTarget=EF(http://www.omsys.com/)

Mif2Go supplies the leading “!” for the macro invocation.



8 Generating WinHelp > 8.10 Invoking WinHelp macros > 8.10.2 Assigning a hotspot property to invoke a macro