F1 help ?

Windows specific forum
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3943
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

F1 help ?

Post by wilbert »

I'm trying to create a help file using Docmaker.

When I press F1 on a function I created, the help file is loaded but it doesn't jump to the right function, instead it reports that it can't find the page.

What could I have done wrong ?
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

From the manual:

OpenHelp("help.chm", "index.htm")
OpenHelp("help.chm", "print.txt")

Remember, the 2nd parameter has to match the page name you're trying to display...

If the original page that contains the about text was called about.htm you must call it like this:

OpenHelp("help.chm", "about.htm")
Fred
Administrator
Administrator
Posts: 18357
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

You need to check 'User library' checkbox when creating the help with the DocMaker and it should work.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3943
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Post by wilbert »

After a lot of trying I got it working.

I had to check the "don't include folders in compiled file" option in the HTML Help Workshop otherwise it didn't work for some reason.
Post Reply