Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with help files

Status
Not open for further replies.

yomyom

Programmer
Dec 23, 2002
119
GB
Hello Delphi world!
I want my user to be able to jump straight to index page, and contents page in my help files.
After much digging about, I discovered that (Help_finder,x)
helps do this. I found that (Help_Finder,0) takes you straight to the contents page. What code would take you to the index page? I've tried (Help_Finder, -1) to (Help_Finder, 5) and it keeps taking me to the contents page. I then tried (Help_index, 0) and got the same results.

Please help me go straight to index
yomyom.
 
Try something like this:
Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Application.HelpFile := 'c:\Program Files\Borland\Delphi4\Help\sqlmon.hlp';
  Application.HelpCommand(HELP_KEY, 0);

end;

 
I am surprised that someone is still using MS's old Help.hlp. :)

Because to-day everyone (?) is using HTML.
Much easier and in line with just about every Help feature
you get in practically all software now-a-days.

Much easier to put together and use as well.

My only problem being (similar to yours) how to grab the Help.html from Delphi.

Having completed a fantastic Help.html file for my project I don't know how to grab it in a button event handler? As in

procedure TfrmGrocShop.btbtnHelpClick(Sender: TObject);
begin
//What ???
end;

I have tried using an Action List component as follows

object ActionList1: TActionList
object ActionGetHelp: TAction
Category = 'File'
Caption = '&Help'
OnExecute = ('c:\Program Files\MyProg\MyHelp.html')Execute
end
end

.....but this results in the following exception

Error creating form: "=" expected on Line 721.

Anyone?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top