Multiple Skins

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Carsten Pedersen
Propeller Head
Posts: 96
Joined: Wed Feb 08, 2006 1:11 am

Multiple Skins

Post by Carsten Pedersen »

Hi,

I have a problem with multiple Skins in a project.
  • By default I have the Default skin.
  • Then I add a new skin called NewSkin.
  • Then I select it in "Open in skin" from the TOC->Properties->Advanced for a topic.
  • The following error is displayed when building: "TOC entry is using a undefined skin: /Project/Skins/NewSkin.flsk"
Another strange thing is that the "Test CSH API Calls" feature in the Build menu does not list the skin NewSkin?

And finally how do I reference the skin to use from my code? The following WinHelp style is not working:

Code: Select all

::HtmlHelp( Window(), "myhelp.chm>NewSkin",HH_HELP_CONTEXT,1001);
-cpede
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Multiple Skins

Post by bobmoon »

Carsten Pedersen wrote:The following error is displayed when building: "TOC entry is using a undefined skin: /Project/Skins/NewSkin.flsk"
How did you create your new skin? In the error message you quoted above, the file extension for a skin is not correct. You have .FLSK instead of .FLSKN. Is that just a typo on your part, or does the file really have the wrong extension?

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

Re: Multiple Skins

Post by Carsten Pedersen »

Yes that is a typo.

It is really strange, if I take the standard Default.flskn and make a copy as Dialog.flskn, and making a reference to that from the TOC,
I still get the error that Dialog.flskn is undefined.
I have looked in the TOC XML and it is referenced correctly?

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

Re: Multiple Skins

Post by bobmoon »

I wasn't aware that you could assign specify a skin for each TOC item. I cannot get that feature to work at all in Flare 4.2, though I'm not getting the error you're getting. When I assign a skin to one TOC item that differs from the skin selected for the target, I just always get the target skin.

Have you tried choosing that skin for the entire target to be sure that it will at least work in that way? Sounds like you may have a bug to report...

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

Re: Multiple Skins

Post by Carsten Pedersen »

Thanks for the tip, when I use the Skin in the Target it works as expected.
But as you mention, the Skin for individual TOC Topics does not seem to work. I will submit an error report.

Anyone knows about calling a Topic using a specific Skin from code?

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

Re: Multiple Skins

Post by bobmoon »

Are you generating CHMs or web help? There is a Flare help topic called "Connecting WebHelp - Developers" that gives the syntax for launching web help with a particular skin. I couldn't find similar code for HTML Help.

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

Re: Multiple Skins

Post by Carsten Pedersen »

I'm doing CHM help, please refer to the first topic entry for the syntax I try to use.

-cpede
Post Reply