Displays in a pop-up window a topic identified by a specific context number. An entry in the [MAP] section of the Help project file identifies the context.
Syntax
PopupContext("filename", context-number)
PC("filename", context-number)
Parameter | Description |
filename | Name of the Help file that contains the topic to be displayed in the pop-up window. The filename must be enclosed in quotation marks. |
context-number | Context number of the topic to be displayed in the pop-up window. The context number must be defined in the [MAP] section of the specified Help file’s project file. |
Example
The following macro displays in a pop-up window the topic mapped to the “801” context ID number in the PIFEDIT.HLP file:
PopupContext("pifedit.hlp", 801)
Comments
If Windows Help cannot find the specified Help file, it displays an error message.
If the context number does not exist or cannot be found in the [MAP] section, Windows Help displays the Contents topic or the first topic in the Help file. (For more information about context numbers, see “[MAP] Section” in Chapter 16, “The Help Project File.”)
See Also
JumpContext