Displays in a pop-up window the topic with a specified context string in a specified Help file. Unlike the PopupContext macro, this macro does not require the topic to be defined in the [MAP] section because it takes the topic context string (as defined in the # footnote) as the second parameter.
Syntax
PopupId("filename", "context-string")
PI("filename", "context-string")
Parameter | Description |
filename | Name of the Help file containing the pop-up window topic. The filename must be enclosed in quotation marks. |
context-string | Context string of the topic in the destination Help file. The context string must be enclosed in quotation marks. |
Example
The following macro displays in a pop-up window a topic identified by the “019_eg_pm” context string in the PROGMAN.HLP file:
PopupId("progman.hlp", "019_eg_pm")
Comments
If Windows Help cannot find the specified Help file, it displays an error message.
If the context string does not exist or cannot be found, Windows Help displays the Contents topic or the first topic in the Help file. (For more information about context strings, see “Inserting Context Strings” in Chapter 6, “Creating Topics.”)
See Also
JumpId