Skip to main content
Inspiring
November 4, 2009
Question

Popup call changes ToC highlight.

  • November 4, 2009
  • 2 replies
  • 785 views

Using RH8 HTML under XP to generate CHM. No source control, no network drives.

In a project I have the settings:
SingleSourceLayouts>HTMLHelp>Properties>Advanced>TOCstyles>AlwaysShowSelection

Project>Windows>Properties>AutoSynchronizeToC

These settings mean that the user can always see his position highlighted in the ToC.

The ToC contains several books, each containing several topics; some topics are included in several books. Various topics call other topics as popups. The popup topics are not in any ToC.

When the user displays one of the popups, the ToC resynchronises (in my test project) to the _next_ ToC entry; thus from BookA Topic 1 to BookB Topic 1, from BookB to BookC. BookC behaves properly (but this would probably change if I created BookD). Regular links, browse sequences and the Back button are also `unstable' with respect to ToC synchronisation.

I'm no guru but I could see nothing special in the HTM, HHP and HHC files.

My test project is 810kB zipped and contains no sensitive information.

Has anyone advice or tips?

--- Derek

This topic has been closed for replies.

2 replies

Inspiring
November 11, 2009

I selected a Binary ToC

and that helped considerably. The highlight now remains during a popup, but calling a topic via a regular hyperlink always highlights the _first_ entry in the ToC. Unfortunately I read somewhere that you can't use a Binary ToC with merged CHMs. S-I-G-H ! ! ! (or does somebody know a workaround?)

--- Derek

Inspiring
November 6, 2009

It occurred to me that there's no reason not to post the test project, if some kind soul would like to help me. It's just a zip of the whole project; you may need to adjust the address for the SSL, but the rest should be portable.

--- Derek

November 6, 2009

Derek - what happens if you keep the Synch settings and deselect "Always show selection"? If you open a topic from the TOC, go to a popup that isn't in the TOC, and then take a quick hyperlink to another topic in the TOC, does the highlight do what you expect?

I can see where the project gets confused when the selection isn't in the TOC, though like you, I would expect the highlight to stay where it was instead of moving.

Inspiring
November 10, 2009

Thanks for the idea Elisa. Sadly it doesn't help; the selected topic is not highlighted in the ToC, but the `wrong' book from the ToC springs open. I didn't text exhaustively, but it looks to be the same behaviour as before.

--- Derek