EHS 1.90 THelpRouter.HelpJump does not alter TAB

This section is for programmers. Please use it for all discussons on interfacing help with your applications and related subjects.

Moderators: Alexander Halser, Michael Schwarzl

Post Reply
HpW
Posts: 31
Joined: Thu Nov 18, 2004 11:50 pm

EHS 1.90 THelpRouter.HelpJump does not alter TAB

Unread post by HpW »

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 :roll:

HpW
Post Reply