Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Help Workshop 1

Status
Not open for further replies.

pmscraiova

Programmer
Dec 8, 2001
86
RO
I made a .chm help, but I don't know how to insert in help's project the contexts ID (I mean HelpContextID). Please help me !!!
Thank you,
Eugen Fintina
 
HI
1. SET HELP TO MYHELP.CHM
This command is typically included in the setup code for the main program of your application.

2. In Design mode, open the object – a form, control, or toolbar, for example – that you want to assign context-sensitive Help to. Look in the Properties Window. Set the HelpContextID property to the number representing a specific topic in your HTML Help file.

Hope this helps :)

ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Thank you very much Ramani, but my problem is how to set the number that represent a specific topic in my HTML Help file.
Best regards,
Eugen Fintina
 
Eugen

Your answer has 2 parts, one being in VFP and the other in HTMLHelp.

In VFP you need to give the .HelpContextId property of a control a number that HTMLHelp can use as a reference to identify the control.

In turn in HTMLHelp, you need to create a header file for your HTMLHelp project to provide HTMLHelp with the constants for your references such as:-

#Define TOPIC0001 1
#Define TOPIC0002 2
#Define TOPIC0003 3
#Define TOPIC0004 4

You can then map the references to the appropriate HTML file.

There is an HTMLHelp forum at Tek-Tips and I suggest you ask there for help in mapping in HTMLHelp etc.

FWIW, I would suggest you complete your VFP project before starting its HTMLHelp project.

Secondly, you need to adopt a numbering system that makes sense to you as a developer.

If you simply use sequential numbering, you will not be able to identify the source of a number.

If you number your main.scx from 1 to n, first child form form from 101 to n, second child form form from 201 to n, a grandchild form from 1101 to n, and so on, you can easily identify the VFP forms whilst you are in HTMLHelp.

HTH

Chris :)
 
Hi, pmscraiova

I'm a novice in making a .chm file. Could you give me some hints/advice by what software to compose it ?

Many thanks
 
As Chris said "Try HTMLHelp from Microsoft". I think that's easy to use it (if you'll take a look to Chris's answer). By the way, thank you very much Chris for your answer. Using you answer, my HTMLhelp works now. Thank you again.
Best wishes,
Eugen Fintina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top