HtmlHelp

Synopsis

Launches an HTML browser so that a help file can be shown from within an AVS/Express user interface.


   module HtmlHelpCore <src_file="htmlhelp.cxx"> {
      string+IPort2 help_filename; // the help filename (.html)
      int+IPort2    show_help;
      cxxmethod  update (
         help_filename+read+req,
         show_help+notify
      );
   };

Description

One of the problems found while creating AVS/Express user interfaces is that it is not easy to provide help to users. This project aims to solve this problem by allowing the user to display an HTML help page at the touch of a button. The project consists of three components, a low-level module, a user interface component and a user macro.

Most of the operation of the HtmlHelp project is straight-forward. However the project does use two environment variables. These are described below. For the best operation of the project these variables should be specified. However if they are not then sensible defaults will be used.

Inputs

help_filename

Name of the help file to be loaded. The parameter is of type string. This will be combined with the XP_HELP_DIR environment variable and passed to the HTML browser. Changing this parameter does not trigger the launching of the HTML browser.

show_help

Integer parameter that is used to trigger the showing of the HTML help page. Whenever this parameter is changed the module update method runs and the appropriate page is loaded into the HTML browser. This input can be directly connected to, for instance, the output of a UIbutton component.

Environment Variables

XP_HELP_DIR

Root directory from which to load help files. If this variable is not specified then the current directory will be used.

HTML_BROWSER

Full filename of the HTML browser to be used to view the HTML help files. If it is necessary to specify a path to your browser then the full path and filename should be specified. If this variable is not specified then the filename "netscape" will be used.

Note that this environment variable is not necessary on Windows platforms. On Windows systems the module uses whichever program is associated with HTML files.

Example

An example application is provided that will show this file when the Help button is pressed.

Files

iac_proj/htmlhelp/helpmods.v contains the V definition of the HtmlHelpCore module.

iac_proj/htmlhelp/helpmacs.v contains the V definitions of the HtmlHelpButton UI component, the HtmlHelp_ModPanel user macro and the HtmlHelpEg example application.

Other Notes

The low-level HtmlHelpMods library containing the module HtmlHelpCore does not specify a process. By default the express process will be used.

Authors

Dr. David Knight, Advanced Visual Systems, Inc.
Andrew Dodd, International AVS Centre.

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL

See Also

n/a