I don't routinely brink up the help file for my project. Tonight I was doing some testing for a new release. Everything seemed to be working fine until I got to the Help menu. Clicking on the menu selections does nothing. The older version of the project that was compiled with 2.99 still works fine. The project includes the PowerBasic HTML.INC module. The code I am using to bring up the help file is.
HtmlHelp HWND_MAINFORM, ProgramPath$ + "Project.chm", %HH_HELP_CONTEXT, BYVAL CLNG(10)
Any idea why this would not work with FF3 but work fine with FF2?
Solved this one too. The problem was the new directory structure for FF3. I did not have the help file in the "release" folder. I moved the help file there and now all is well.
Richard,
Thanks for sharing the call for the help - I have a couple of projects that need Help files in order for me to consider them finished.
What tool do you use to create the .CHM files?
Thanks,
-John
John,
I use HelpMaker. It is Freeware, easy to use, and very powerful. You can find it here:
http://www.vizacc.com/ (http://www.vizacc.com/)
Note:
They have a commercial version v9.0 (which is free only for non commercial use) and a version 7.4 which is free also for commercial use. I am using v7.4. The nice thing - from the same source you can create ChmHelp, WinHelp, HtmlHelp, and Pdf.
I've been using HelpScribble for years (helpscribble.com). It's not free but the price was reasonable. It's easy to use and it allows me to create a help file for the program, a printable manual, and web help for my website.
This is how I call the CHM help files in order to lookup a keyword, etc.
Local link As HH_AKLINK
link.cbStruct = SizeOf(HH_AKLINK)
link.fReserved = %FALSE
link.pszKeywords = StrPtr(sKeyword)
link.pszUrl = %Null
link.pszMsgText = %Null
link.pszMsgTitle = %Null
link.pszWindow = %Null
link.fIndexOnFail = %FALSE
HtmlHelp %HWND_DESKTOP, ByCopy PB_HelpFile & $Nul, %HH_DISPLAY_TOPIC, ByVal %Null
HtmlHelp %HWND_DESKTOP, ByCopy PB_HelpFile & $Nul, %HH_KEYWORD_LOOKUP, ByVal VarPtr(link)
What code is recommended to allow help to be called up whenever function key F1 is pressed within the form that is currently in focus?