16. Managing and Deploying Applications : How You Can Create and Distribute Help Files : Create Help Files : Specify Help Files in Your Application
 
Share this page                  
Specify Help Files in Your Application
You can specify help files for your application using an “on Click” event block.
To link your Help files to your application
1. Decide which Help menu items you want in your application (for example, Contents, Search, How to Use Help).
2. Create a Help menu for each frame that calls the Help file.
Note:  You can speed this process by adding the Help menu to the frame template for your application.
3. For each menu item, write an “on Click” event block that calls the following method:
CurSession.WinHelp(command=commandname,topic='Topic Title',context=context,
     helpfile='filename.hlp');
For more information about the WinHelp method, see online help.
If the Help file specified does not include the path, this method searches for the named Help files in the following locations in the order listed (if the help file is a full name, no search occurs):
The location of the application.img file
II_W4GLAPPS_DIR
%II_SYSTEM%\ingres\w4glapps
Note:  During development—that is, when running the application from the database—you can place the development Help file in II_W4GLAPPS_DIR. During deployment, move the Help file to the same location as the application image file.