Programmatically showing and hiding navigation Pane

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
Anjali
Jr. Propeller Head
Posts: 9
Joined: Thu Apr 24, 2008 4:09 am

Programmatically showing and hiding navigation Pane

Post by Anjali »

Hi,
We just recently purchased FLare and Capture to build help for our .net application. For the HTML Help target by default we can hide the Navigation pane on startup by using the settings in the 'Skin'.

In our .net application there are two ways by which we can show the HTML help.
1. Context sensitive(each view has a help button which takes you to the help topic), in this case we want to hide the Navigation.
2. The other being Help menu from where we launch the chm file and here we want to show the navigation pane.

Does anyone know how to show and hide the Navigation pane programmatically? We are using VS.Net 2003.

Thanks,
Anjali
Pete Lees
Sr. Propeller Head
Posts: 150
Joined: Thu Feb 09, 2006 12:33 pm
Location: Bracknell, Berkshire, UK

Re: Programmatically showing and hiding navigation Pane

Post by Pete Lees »

Hi,

You may want to look at the HTML Help API command HH_SET_WIN_TYPE, which lets you define the properties of the help window at run time. One of those properties is fNotExpanded, which specifies that the help viewer is opened with the navigation pane closed.

But I believe that it would be far easier just to set up two window types in your help file, one with the navigation pane hidden and the other with it showing, and call the first with your context help calls and the second from the Help menu. In HTML Help API calls, you specify the required window type by appending its name to the second parameter, like this:

HtmlHelp(hwndCaller, "c:\app\help\Help.chm>NoNavPane", HH_HELP_CONTEXT, 1001);

Pete
Anjali
Jr. Propeller Head
Posts: 9
Joined: Thu Apr 24, 2008 4:09 am

Re: Programmatically showing and hiding navigation Pane

Post by Anjali »

Thanks, Pete. But how to set up two window types in the help file :? ? Can you explain it in detail?
Anjali
Jr. Propeller Head
Posts: 9
Joined: Thu Apr 24, 2008 4:09 am

Re: Programmatically showing and hiding navigation Pane

Post by Anjali »

Update on the issue...

Just create two skins in flare project and then programmatically call HTMLHelp as mentioned by Pete..
HtmlHelp(hwndCaller, "c:\app\help\Help.chm>NoNavPane", HH_HELP_CONTEXT, 1001);

The attachment shows how to create two skins in flare...
You do not have the required permissions to view the files attached to this post.
cruitbuck
Propeller Head
Posts: 60
Joined: Wed May 06, 2009 8:19 am
Location: dallas
Contact:

Re: Programmatically showing and hiding navigation Pane

Post by cruitbuck »

I discovered that Under WebHelpSetup if the nav pane width is ANYTHING less than "1" the default of width of 200 is issued. Perhaps it would be useful to request a "destroy nav pane" call.

BobB
OZ Systems, Inc.
Dallas, TX
Buck the Tech Writer
===keep thinking===
Love :flare:
Post Reply