I use the THelpRouter.HelpJump functions a lot.
I have seen if I previously opened the html help file, change the focus to any other tab (like index tab) and then fire a HelpJump again: The HelpJump will change the htmpl page but do not change to the related "Contents" tab.
What I add in the source, but do not know whether there is a faster solution....
if HID <> '' then begin
aHelpFile := aHelpFile + '::/' + HID;
result := HtmlHelp(0, pchar(aHelpFile), HH_DISPLAY_TOC, 0) <> 0; //show related tab
If result
Then result := HtmlHelp(0, pchar(aHelpFile), HH_DISPLAY_TOPIC, 0) <> 0; //show topic
end
Cheers
HpW
EHS 1.90 THelpRouter.HelpJump does not alter TAB
Moderators: Alexander Halser, Michael Schwarzl