Context Sensitive Help Terminology


 
The following terms are used in discussing Context Sensitive Help.
 
Application Context A string, defined by the application programmer, that is used as a key to find a help page.
 
Document Tag A help file specific tag that points to a specific page in a help document. There is a one-to-one correspondence between an application context and a document tag.
 
NX Translation Table Translation table used by NX to associate the Application Context to the Document Tag.
 
HTML file Hyper Text Markup Language version of a help file that can be viewed using a standard browser. HTML is a non-proprietary format, based upon SGML, and is widely used for publishing hypertext on the World Wide Web (WWW). HTML uses tags to structure text into headings, paragraphs, lists, hypertext links and more.  

The Context Sensitive Help Mechanism


 
The context sensitive help mechanism begins with calls made by the Open C developer to push application contexts onto a stack before entering a dialog. These application contexts are tracked by the help mechanism and capture the path the user has taken through the application. When the user requests context sensitive help, the help mechanism uses the application contexts to initiate the display of help.
 
The current application context from the stack is looked up in a translation table to find the display method and the actual document tag. The display method specifies a format type for the help, either HTML or plain text. The document tag specifies the directory of the help files, and in the case of HTML, a specific location within the document.
 
The following are the basic steps required for implementing context sensitive help.
 
1. Create help files. For HTML files you can include location anchors and hyperlinks that branch to other help files.
 
2. Create a translation table that establishes mappings between application contexts and the appropriate help files.
 
3. Insert calls in the application code to push application contexts.
 

Context Sensitive Help Preparation


 
The first thing to be done as an Open C developer who wants to hook up with the Context Sensitive help mechanism is to decide which dialogs require specific help pages in a document. The other items that require consideration are: