Showing HTMLHelp in Skins Window

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
Carsten Pedersen
Propeller Head
Posts: 96
Joined: Wed Feb 08, 2006 1:11 am

Showing HTMLHelp in Skins Window

Post by Carsten Pedersen »

I still have problems with showing a HTML topic i a specified skin.

Compared to Flare v4.5 the build menu opion "Test CSH API Calls..." now works.

I have then noticed the "Preview as HTML Window" option in the top of the Skin Editor.
This however always produces an "Object no set to an instance..." error.

Even I have specified a skin called "Dialog" I cannot get the topic showed using the HTML API:

Code: Select all

::HtmlHelp(GetSafeHwnd(),_T("c:\\windows\\help\\myhelp.chm>Dialog"),HH_HELP_CONTEXT,id);
It always shows in the Default skin?

Using Windows Vista x64
Visual Studio 2008 C++
Flare v5 SP1

-cpede
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Showing HTMLHelp in Skins Window

Post by bobmoon »

Hi Carsten -

I tried playing with this and was able to get it to work from within the TOC. I could specify for a particular TOC entry that it should be opened in a different skin, and that worked (using v5 SP1). All of my links in the TOC open using the default skin, but that one TOC entry opens in a new window using the different skin.

If your Dialog skin will not open correctly in the skin preview, then perhaps something is corrupted in your skin file? Does the Dialog skin work if you specify it for the entire project? Can you get it to open for a single TOC entry like I did?

I'm not sure about your CSH syntax. Maybe you can make a copy of your default skin in Flare and change a few things, and see if your syntax works with the copy of the skin. It may be that you have two different issues at work here.

Bob
Carsten Pedersen
Propeller Head
Posts: 96
Joined: Wed Feb 08, 2006 1:11 am

Re: Showing HTMLHelp in Skins Window

Post by Carsten Pedersen »

Hi,

Thanks for answering. In Flare v4.xx the skins did not work for HTML Help inside the Flare program; the Test, and as you did, assigning
a specific topic in the TOC. This now all works inside Flare 5.xx.

My problem is how to specify a skin from the program code I am writing. All documentation describes the same syntax as for the "old" WinHelp,
as described in my original post. However this does not work for me.

Has anyone got the HTML Help to work with skins from calling C++ code?

-cpede
Carsten Pedersen
Propeller Head
Posts: 96
Joined: Wed Feb 08, 2006 1:11 am

Re: Showing HTMLHelp in Skins Window

Post by Carsten Pedersen »

Bumping...

Nobody using an onine HTMLHelp file created by Flare with different skins from C++ code :|

-cpede
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Showing HTMLHelp in Skins Window

Post by bobmoon »

Carsten Pedersen wrote:Nobody using an onine HTMLHelp file created by Flare with different skins from C++ code :|
You might be better off starting a new thread with that title. I think the forum is mostly used by people who just write the content, and people who also write code are rare.

I looked around on the MSDN site and found some references to how you call help from C++, but nothing about skins. The only reference to launching in another skin used the same syntax you've already been using.

Bob
Paul Griffiths
Sr. Propeller Head
Posts: 262
Joined: Wed Apr 18, 2007 2:25 am
Location: Nottingham, UK

Re: Showing HTMLHelp in Skins Window

Post by Paul Griffiths »

Bob, you've achieved more than I've been able to. I can't even get a ToC entry to link to another skin. Every time I create the .CHM file, I get a warning that the selected skin is undefined.
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Showing HTMLHelp in Skins Window

Post by bobmoon »

Paul Griffiths wrote:Bob, you've achieved more than I've been able to. I can't even get a ToC entry to link to another skin. Every time I create the .CHM file, I get a warning that the selected skin is undefined.
Hi Paul -

Are you using Flare v5? I think Carsten said previously that some part of that functionality only recently started working.

All I did was take an existing skin and select it in the TOC topic properties. Does the skin work if you pick it as the main skin in the Target properties? You might also try just going to Project Organizer > Skins and making a copy of your Default skin (or whichever one is working) and try assigning that one to a topic. That should let you know if it's an issue with the skin file or something else.

Bob
Post Reply