Solved

Calling Help file with F1

Posted on 1997-07-25
1
247 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 100 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month4 days, 21 hours left to enroll

636 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