Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Calling Help file with F1

Posted on 1997-07-25
1
Medium Priority
?
251 Views
Last Modified: 2010-04-04
I have  a help file. I can call it using the winhelp... or application.help command, but how do I associate the F1 key to call the help file?

Thanks
JohnE
0
Comment
Question by:JohnE
1 Comment
 
LVL 5

Accepted Solution

by:
ronit051397 earned 400 total points
ID: 1339806
You create a help file by compiling the hpj file. In order to connect a certain field in a delphi screen to a certain help screen you must declare the [MAP] section in that hpj file .

Each screen in the help file has a uniq name which is described by declaring a footnote in the rtf file.

Under the [MAP] section you write all these uniq names + space or tab + a uniq number declared by you. This number is the HelpContext number. This should look something like this:

[MAP]
Name1 1
.
.
CustomerAccount  100
InvoiceNumber  101
.
.

Then you recompile the hpj.
For example If the user is focused on a control named 'Edit1' and by pressing F1, you want the help screen of the customer account to apear, then you should set:
Edit1.helpContext:=100;

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Loops Section Overview
Suggested Courses

927 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