Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Context-Sensitive Help
Message
De
07/11/2001 08:14:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Context-Sensitive Help
Divers
Thread ID:
00578430
Message ID:
00578430
Vues:
49
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)
  • Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform