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

x
?
Solved

Help with help

Posted on 1997-07-22
7
Medium Priority
?
146 Views
Last Modified: 2012-04-25
I am creating a Help file for my Delphi-application. This proplem occur when I tried to create Topic Searc button. I don't know how to call Windows help Searc-macro from the Delphi directly. If yuo know the answer please tell it to me.
0
Comment
Question by:keihahe1
[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
  • 3
  • 3
7 Comments
 
LVL 5

Expert Comment

by:ronit051397
ID: 1339521
On what tool you use to create the rtf file?
0
 
LVL 1

Accepted Solution

by:
sassas081597 earned 100 total points
ID: 1339522
procedure TForm1.Button1Click(...);
begin  
  Application.HelpFile := 'DELPHI.HLP';
  Application.Helpcommand(HELP_Key, 0);
end;

Use this code to get the search window of WinHelp
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1339523
I would do it like this, calls search immediately without searching for a key first :

procedure TForm1.HelpSearch(Sender: TObject);
     var
        HelpMacro:pchar;
     begin
          HelpMacro:='Search()';
          with Application do begin
               Application.HelpContext(1);
               HelpCommand(HELP_COMMAND,longint(HelpMacro));
          end;
     end;

Haven't tried out sassas code, but supose it works too, but I think it first searches for a key and if that key doesn't exists it displays the search dialog.

c.u. ZifNab
Have fun & if I'm wrong, please give me a sign.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Expert Comment

by:sassas081597
ID: 1339524
The ZifNab code works as good as mine, however my answer is recomended by Microsoft in this partial case.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1339525
Hi sassas,

Thanks for replying at my comment and for letting me know about the recomendation of Microsoft! Do you know also why they recommend it this way? It would be great to know it.

Thanks already,
Have fun,
c.u. ZifNab;
0
 
LVL 1

Expert Comment

by:sassas081597
ID: 1339526
HELP_KEY      Displays the topic in the keyword table that matches the specified keyword, if there is an exact match. If there is more than one match, displays the Index with the topics listed in the Topics Found list box.       Address of a keyword string(If 0 displays the keyboard table).
>>Taken from the Win 32 programming Reference
>>SASSAS
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1339527
Thanks Sassas

Have fun,
c.u. ZifNab;
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

688 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