Solved

Calling Help file with F1

Posted on 1997-07-25
1
238 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 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: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

785 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