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!

Online Help for Aplication Using ContextID

Status
Not open for further replies.

TSWA

IS-IT--Management
Sep 27, 2001
66
PA
Hello, I am developing applications with VFP6.0 and Windows 2K plattform. I need a guide to create a Help File Online to distribute to the users(We are ISO 9001 certificated).

I have questions about the link between .CHM file and the Context ID of the Form, Object, etc.
1. How can I Search into the .CHM file. Example, I have the Text Object InvoiceNo1. How can I identify this Object into the .CHM File when I press F1?.

2. How can I define the list of ContextId into VFP application or .PRG?

3. I know that exist the HelpContextID # into Forms, Object, etc. How is link into the .CHM file.

4. What is the difference between HelpContextId # and Whatsthishelp / WhatsthishelpID #?

Thanks in advance and Best Regards from Panama,

Marlon
 
Hi Marlon,

1. I've not done this with chm, but with Windows Help, you need to compiel a context ID into the help topic. When you invoke help from that object then, the topic with that ID will be displayed.

2. Not sure what you mean by this.

3. The link is automatic. When you invoke help from an object with a non-zero HelpContextID, the matching topic is automatically displayed. You might also want to look at the SET TOPIC ID command.

4. The WhatsThisHelp properties are used when a user clicks on the little questionmark button in the title bar and then on an object.

Cheers (from Australia),

Andrew

Andrew Coates
OzFox 2003 Australia's VFP Conference -- ------
DISCLOSURE
We are the Australasian Distributor for the Hentzenwerke Series of Books. (By the same token, I really do think they're the best printed VFP resource out there -- that's why we sell them)
 
Hello Andrew, I am working hard doing the Online Manual, I compile small PRG to test .CHM file and works fine. I don't know if something is wrong into the .CHM. I will explain the steps used to test the .CHM Online.

1. I create small .PRG to execute the .CHM.(The .exe and .chm is into the same directory)
C.PRG
set help to SCS.CHM
do form forms\c
read events
quit

2. The Form has a Text Object with the HelpContextID #1 and #2, etc.

3. If the focus is not into TXTText1 and TXTText2, when I press F1, the Help is Displayed.

4. The .exe send error "HH_HELP_CONTEXT called without [MAP] Section" when I focus TXTText1 and press F1.

5. I Compile the project and Include SCS.HH(File with the Header). The Compiler didn't send error. I am assuming that the number at the right is the ContextID defined into the Object. This example was taken from SOLNHLP.ZIP from the CD of VFP.
SCS.HH(Header Content)
#define infogeneral 1
#define login 2
#define data 3
#define bitems 4
#define changewh 5

I don't know where are the problems. How I explain, we were ISO 9001:2000 certified and the Documentation will be Online into the programs developed in house.

Andrew did you see Miss Universe. We were the host country and I didn't like the judges selection with 15. After this, the other selection were fatal.

Thanks in Advance. Best regards from Panama.

Marlon

 
I'd like to generate some help documentation for an app'n I am developing and don't excactly find the supporting documentation available to me 'overwhelming'. Any hints wrt how to get some introductory facts?
 
TSWA,

You really need two header files...one for the MAP section and one for the ALIAS section (unless you are filling the Alias strings in manually.)

Header File for MAP
________________________
#define IDH_INFORGENERAL 1
#define IDH_LOGIN 2
#define IDH_DATA 3
#define IDH_BITEMS 4
#define IDH_CHANGEWH 5



Header File for ALIAS
________________________

IDH_INFORGENERAL=infogeneral.htm
IDH_LOGIN=login.htm
IDH_DATA=data.htm
IDH_BITEMS=bitems.htm
IDH_CHANGEWH=changewh.htm

...above is just an example, so replace the names with the real names of your constants and your html pages. Prefixing your constants with "IDH_" is a help file convention and I include it for your information. The alias strings allow the help engine to know which help page to bring up when you press F1. You can add these to your help file by using HTML Help Workshop and click on "HTMLHelp API Information" button on the left-hand side. (That button has an icon on it that looks like a line and mouse pointer together.)

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top