Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Context-sensitive help and VFP runtime
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00253801
Message ID:
00257072
Vues:
29
Below is correct.

>You need to set the public variable in some more places then just the init event. If you open another window and then switches back your variable will point to the last opened window and not the window you actually standing in. I have put the following code in the GotFocus and Load Method and it works good for me.
>
>if not empty(This.HelpContextID)
> gnHelpContextID = This.HelpContextID
>endif
>
>In the Unload event I also put: gnHelpContextID = 0 to make sure I don't get help for window thats not open.
>
>/Mårten Törnquist
>
>
>>Wrote an article on this when it first came out. Here is what I do.
>>
>>on help do myhelp
>>
>>then
>>
>>at the start of each form I set a public variable to the name of the help page for that form.
>>
>>then the myhelp procedure calls hh.exe with the chm file and the further parameter to start at the page set by the public variable.
>>
>>Tada! Instant context sensitive html help.
>>
>>If you need exact code let me know
Todd Burstain, MD
infinitydoc@delphi.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform