Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Context-Sensitive Help
Message
From
07/11/2001 08:14:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Context-Sensitive Help
Miscellaneous
Thread ID:
00578430
Message ID:
00578430
Views:
50
To create context-sensitive help (for CHM-files), I follow a rather involved procedure, and I was wondering if some steps could be omitted.

The steps I follow go something like this:

  • Add a line to file context.h, which is #INCLUDEd in every form. Sample line: #define IDH_MYFORM 157 (I use consecutive numbering - the next form would be 158, in this example).
  • In the Form.Init(), put a line like: This.HelpContextId = IDH_MYFORM
  • Write at least a placeholder HTML-file with FrontPage Express. Save it as MyForm.htm, in folder Forms (under the folder that contains the help project).
  • Open the help project with NotePad, and add the following line to the [ALIAS] section: IDH_MYFORM = forms\MyForm.htm
  • Add the help file to the help project table-of-contents.

    I was wondering, can some of these steps be omitted? Some sort of "more direct" assignment, like assigning the number directly. I don't actually use the constant IDH_MYFORM - both the help compiler and VFP convert this to a number!

    It may not be worthwhile (for readibility), but I was wondering whether the descriptive constant can be omitted, and the number used directly.

    TIA, Hilmar.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Next
    Reply
    Map
    View

    Click here to load this message in the networking platform