Calling CHM from an external components

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
User avatar
VictorL
Posts: 904
Joined: Mon Apr 13, 2009 11:03 am
Location: Moscow, Russia

Calling CHM from an external components

Unread post by VictorL »

Hi!

I've just begun it in H&M5 Forum section time before... http://helpman.it-authoring.com/viewtop ... 22&t=11028

The situation is the system has two level components as self-made as external (non self-made). The external componnets don't provide the program code but some of them has code to edit it by programers. The external components are laid on main form which is shown the main panel of our system.
Standart widows (sef-made) has method to call CHM and it lays on downer level then statdart form (as they say it can't do with an external ones)...

As we call it from standart window:

Code: Select all

hrMain := THelpRouter.Create(Self);
hrMain.HelpType := htTMLhelp;
hrMain.Helpfile := ExtractFilePath(Application.ExeName) + HelpFileName;
It needs to call CHM from external forms. Is it really to make?
User avatar
VictorL
Posts: 904
Joined: Mon Apr 13, 2009 11:03 am
Location: Moscow, Russia

Re: Calling CHM from an external components

Unread post by VictorL »

Dear Collegues!

If something's wrong to you I'd like you to form the list of questions to our programers to get clear this problem.
User avatar
Alexander Halser
EC-Software Support
Posts: 4098
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: Calling CHM from an external components

Unread post by Alexander Halser »

Set a stop point in THelpRouter.OnRouteHelp and find out, which values the function is called with.
Alexander Halser
Senior Software Architect, EC Software GmbH
User avatar
VictorL
Posts: 904
Joined: Mon Apr 13, 2009 11:03 am
Location: Moscow, Russia

Re: Calling CHM from an external components

Unread post by VictorL »

Alexander Halser wrote:Set a stop point in THelpRouter.OnRouteHelp and find out, which values the function is called with.
Thanks for a direction but it isn't possibe :?

There're some notes and questions from our programers you need to find out:
  • 1. As above event they can't debug because the object is created dynamically.
    2. The CHM's call is being made by A-Keywords.
    3. We use next function:

Code: Select all

function CallHelpRouter(Hr:THelpRouter; sAKeyword:string): boolean;
begin
  if sAKeyword = '' then
    Result := Hr.HelpJump(Application.HelpFile, 'ContextStarted')
  else
  begin
    Result := Hr.HelpALink(sAKeyword);
    if Result = False then
      Hr.HelpJump(Application.HelpFile, 'ContextStarted');
  end;    
end;
  • 4. How to bind a compilied component with our system (in step of CHM's call)?
User avatar
VictorL
Posts: 904
Joined: Mon Apr 13, 2009 11:03 am
Location: Moscow, Russia

Re: Calling CHM from an external components

Unread post by VictorL »

Dear Collegues!

Is it really difficult to find the answer or you haven't any time to?
There's very important that time and our programers can't solve it.
User avatar
VictorL
Posts: 904
Joined: Mon Apr 13, 2009 11:03 am
Location: Moscow, Russia

Re: Calling CHM from an external components

Unread post by VictorL »

This time we suspended the solution of CHM's call in case of testing some offer (taking the messages from an external components and then using it for CHM's call).

I'd like to thank you for help's wishing and ask please to suspend your answer to us while we ask it again.

Have a nice day!
Post Reply