Solved

Calling Help file with F1

Posted on 1997-07-25
1
236 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now