
Documentation your customers will love
Useful Information
By Carol Johnston.
Contact us if you would like a PDF version of this article.
Context-sensitive Help is assistance that is appropriate to where the user is in the software application, and what they are trying to do.
Context-sensitive Help requires that the Help author and the programmer join forces.
It is strongly recommended that both parties meet up early on in the project to double-check that both are clear on the process and role responsibilities.
To implement context-sensitive Help we need to map Help-related objects on the application interface to appropriate Help topics. This mapping is achieved by way of a header file.
There are two ways for the Help author and the programmer to work together to achieve context-sensitive Help:
Each object on the application interface has a unique number associated with it (the context number). This number is what will be used by the application to find the correct Help topic.
However, it is much easier for humans to deal with descriptive names, rather than numbers. For example, the context name CTX_SALES_DIALOG is much easier to understand and recognise than the context number 2384. However, the application and the compiled HTML Help ultimately require a number.
The header file is simply a list of all the context names and their corresponding context numbers. It is a simple text file whose layout depends on the programming language being used to create the application.
Language |
File extension |
Syntax |
Example |
C |
.H |
#define string number |
|
Pascal |
.PAS |
string = number; |
|
Basic
|
.BAS |
string = number or GLOBAL CONST string = number |
|
The header file is not used at runtime. The information it contains is included in the Help system on compilation.
… the programmer must:
… the author must then:
… the author must:
…the programmer must then:
Next: Writing the content