?
Solved

Opening Help Files fraom Delphi

Posted on 1998-06-15
5
Medium Priority
?
259 Views
Last Modified: 2010-04-03
I made a Help file for a Delphi program with *.HLP and *.CNT
and it works fine when dobbelclicking the *.HLP file from a HLP icon.
But using this code in a Delphi program
Application.HelpFile := 'EMNEBANK.HLP';
Application.HelpCommand(Help_Contents, 0);
the Contents page where I can open the HLP books is not opened.
What am I supposed to write to oen the Contents page?
0
Comment
Question by:rainbowsoftware
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Expert Comment

by:Greedy
ID: 1352891
Try this
WinHelp(Form1.Handle, pchar(Application.HelpFile), HELP_FINDER, 0);

eeehh...that works sometimes but if the user moves it to another tab it displayes that tab instead...
0
 
LVL 1

Expert Comment

by:Greedy
ID: 1352892
humm...that's the same thing exployer does...but you want it to always open on the Contents tab right?
0
 

Expert Comment

by:paulo_psa
ID: 1352893
Hi rainbow,

You need first indicate where is your help file.
Go to Project>>Options>>Application and fill the path in "Help File:" field.

After this put this code in your procedure:

Application.HelpCommand(HELP_CONTENTS,0); {for contents}


OR you can use:

const
     EmptyString: pChar='';
begin
     Application.HelpCommand(HELP_PARTIALKEY,Longint(EmptyString));
end;

{ for topics }

0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1352894
0
 

Accepted Solution

by:
fhill earned 100 total points
ID: 1352895
be sure you have the hlpfile.cnt & hlpfile.hlp files in your exe directory.

Application.HelpFile := extractFilePath(ParamStr(0))+'hlpname.hlp';
Application.HelpCommand(HELP_CONTENTS, 0);

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question