All about help - how to open .hlp file


hi

can you give me a complete code for calling a help file , index , contents......

Lulli
lulliAsked:
Who is Participating?
 
rwilson032697Connect With a Mentor Commented:
Try this:

Go File|New, select the projects tab, then the SDI Application wizard.

Work through the wizard and look at the code it generates - it includes all the calls to access help that you refer to...

Cheers,

Raymond.
0
 
lulliAuthor Commented:
Nothing there...
0
 
lulliAuthor Commented:
Nothing there...
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
raidosCommented:
I've Done this...hmm...

Application.HelpCommand(15,Data);

Where 15 is Bring up the Dialog..
And Data is -3..-1
-3 is i believe Search.
-2 is Index
-1 is contents..

Maybe in reverse order but thats what i did.

Good luck.
0
 
lulliAuthor Commented:
i get always search dialog , and how do i assign helpfile in code?
0
 
rwilson032697Commented:
Sorry, I should have said "Application" wizard...

here are the relevant bits:

procedure TMainForm.HelpContents(Sender: TObject);
begin
  Application.HelpCommand(HELP_CONTENTS, 0);
end;

procedure TMainForm.HelpSearch(Sender: TObject);
const
  EmptyString: PChar = '';
begin
  Application.HelpCommand(HELP_PARTIALKEY, Longint(EmptyString));
end;

procedure TMainForm.HelpHowToUse(Sender: TObject);
begin
  Application.HelpCommand(HELP_HELPONHELP, 0);
end;

Cheers,

Raymond.
0
All Courses

From novice to tech pro — start learning today.