>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement