Solved

Opening Help Files fraom Delphi

Posted on 1998-06-15
5
233 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 50 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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Why can't I create any project with my delphi EXE file? 6 58
When i run adoquery my application freezes 26 209
Delphi Yen format 3 72
Multi-layered image in FireMonkey 9 93
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

732 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