PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Richard Marchessault on December 21, 2009, 11:05:01 PM

Title: Help Problem
Post by: Richard Marchessault on December 21, 2009, 11:05:01 PM
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.
Title: Re: Help Problem
Post by: John Montenigro on December 22, 2009, 02:16:43 AM
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
Title: Re: Help Problem
Post by: Rolf Brandt on December 22, 2009, 03:45:29 AM
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.

Title: Re: Help Problem
Post by: Richard Marchessault on December 22, 2009, 08:03:19 AM
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.
Title: Re: Help Problem
Post by: Paul Squires on December 22, 2009, 08:36:55 AM
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)

Title: Re: Help Problem
Post by: Richard Marchessault on December 22, 2009, 10:06:02 PM
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?