Help file

Mac OSX specific forum
cajomi
User
User
Posts: 45
Joined: Thu Dec 04, 2008 9:53 am
Location: Essen

Help file

Post 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
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Help file

Post by Vera »

Hello cajomi,

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

greets ~ Vera
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: Help file

Post by Mistrel »

Vera is right. However, I've always found PureBasic to be rather consistent at providing paths with a trailing slash.
cajomi
User
User
Posts: 45
Joined: Thu Dec 04, 2008 9:53 am
Location: Essen

Re: Help file

Post by cajomi »

A backslash for "/" Help does not work.
What else can it be?

cajomi
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Help file

Post by Fred »

OpenHelp doesn't support .chm on OS X, it needs to be the native OS X help format.
cajomi
User
User
Posts: 45
Joined: Thu Dec 04, 2008 9:53 am
Location: Essen

Re: Help file

Post by cajomi »

Thanks, now it is clear......

cajomi
User avatar
deeproot
Enthusiast
Enthusiast
Posts: 284
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: Help file

Post 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.
Post Reply