Page 1 of 1

Help file

Posted: Mon Nov 24, 2014 11:45 am
by cajomi
What is here wrong:

Code: Select all

OpenHelp(Grundpfad+"Help/WorldCreator_Help.chm","Index.htm")
In windows there is no problem, but in mac it does not work.

Johannes

Re: Help file

Posted: Tue Nov 25, 2014 12:26 am
by Vera
Hello cajomi,

just an idea: could it be that 'Grundpfad' doesn't contain the backslash '/' at the end?

greets ~ Vera

Re: Help file

Posted: Tue Nov 25, 2014 1:41 am
by Mistrel
Vera is right. However, I've always found PureBasic to be rather consistent at providing paths with a trailing slash.

Re: Help file

Posted: Tue Nov 25, 2014 10:25 am
by cajomi
A backslash for "/" Help does not work.
What else can it be?

cajomi

Re: Help file

Posted: Tue Nov 25, 2014 10:36 am
by Fred
OpenHelp doesn't support .chm on OS X, it needs to be the native OS X help format.

Re: Help file

Posted: Tue Nov 25, 2014 10:40 am
by cajomi
Thanks, now it is clear......

cajomi

Re: Help file

Posted: Tue Nov 25, 2014 5:09 pm
by deeproot
I had a similar issue but wanted the Mac edition of my program to have a Help that looked like the Windows one, rather than the native Mac style. I also wanted to re-use the same HTML files as in the chm, as it's a big set.

Of course the PureBasic IDE does this beautifully! So I wrote my own module, with similar appearance to the PureBasic help and working from the same kind of XML files to give chm-style contents and index (hope Fred doesn't mind!). It works well for me.

It's part of a large project, but if anyone's interested I can post some code.