Question about help files

Posted on 2005-05-10
Last Modified: 2010-05-18

I have my app setup to use compiled HTML help files.  When I press F1 the help appears as expetected. I then added my HelpContextID's to all my fields. When I press F1 on my fields I'm expecting the help associated with those ID's to appear but I just get the start of the index. I must be missing a step here. Any suggestions?
Question by:bfeddish
    LVL 4

    Expert Comment

    What software are you using to create the Help files?
    LVL 1

    Author Comment

    It was created in RoboHelp
    LVL 2

    Expert Comment


    Looks to me that you don't have TopicIds in your compiled help file that match your HelpContextIDs, it can't find one so just opens the help file instead.  I don't use RoboHelp but instead use MS HTML Help Workshop. There I text edit a file called MyHelpFile.h which assigns a TopicID to the individual HTML pages which then all get compiled into the CHM file.
    An example of ths file is

    #define IDH_ALL_DIALOGS 1
    #define IDH_dlg_frmAbout 10
    #define IDH_dlg_frmBuildQuotes 20
    #define IDH_dlg_frmBuildTemplate 30
    #define IDH_dlg_frmFindTemplate 40
    #define IDH_dlg_frmCustomers 50
    #define IDH_dlg_frmEditTemplate 60
    #define IDH_dlg_frmUserDetails 70
    #define IDH_dlg_frmItems 80
    #define IDH_dlg_frmChooseTemplate 90
    #define IDH_dlg_frmQuotes 100
    #define IDH_dlg_frmQuoteReport 110
    #define IDH_dlg_frmFindCustomer 120
    #define IDH_dlg_frmFindItem 130
    #define IDH_dlg_frmFindSupplier 140
    #define IDH_dlg_mdiMenu 150
    #define IDH_dlg_frmSuppliers 160

    where dlg_frmSuppliers is an uncompiled HTML page and it gets assigned a TopicID of 160. Then in my app I would make the Supplier form HelpContextID = 160. I would think Robohelp has something similar.

    Good luck
    LVL 2

    Expert Comment


    Oops I didn't quite put everything in my first post on this.

    In the MyHelpFile.h file:  IDH_dlg_frmSuppliers is an alias for the dlg_frmSuppliers.htm file.

    To setup the alias:
    when you open your help file (MyHelpFile.hhp) in HTML Help Workshop, scrolling down the details brings up an [ALIAS] section. Double clicking in this brings up a dialog with an alias tab that you can use to create the alias.

    Again good luck
    LVL 1

    Accepted Solution

    PAQed with no points refunded (of 125)

    Community Support Moderator

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now