Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Calling Help file with F1

Posted on 1997-07-25
1
Medium Priority
?
250 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
[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
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

670 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