Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Context-sensitive help with chm files.
Message
 
À
19/11/1999 08:32:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00292968
Message ID:
00292973
Vues:
14
>I´ve built the help file using html help workshop, but I don´t know how to implement context-sensitive help at form level.
>
>When the user presses F1, the help window must appear showing the topic that corresponds to the current active form. How could I do this?
>
>In .hlp files, you simply write the topic id in the HelpContextId property of the form, but in .chm files there´s no topic Id.
>
>Thanx in Advance

I've just started using the html help too. The way I solved this problem is this:

on key label F1 do GetHelp
Inside the service routine GetHelp:

if type("_screen.ActiveForm")="O".and.!isnull(_screen.ActiveForm)
if type("_screen.ActiveForm.HelpKeyword")="C"
if !empty(_screen.ActiveForm.HelpKeyword)
m.keyword=alltrim(_screen.ActiveForm.HelpKeyword)
endif
endif
endif
if empty(m.keyword)
help
else
help &keyword
endif

Where the property HelpKeyword is my new character type property, that I added to parent of all forms (suppose to have built good object model...)

Then in SCX/VCX form fill the HelpKeyword properti with a keyword and the same place in the html workshop to the index pageframe with apropriate link.

I don't know if there isn't easier way, but this one seems to work.

Hi and good luck!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform