Solved

Help with help

Posted on 1997-07-22
7
141 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
  • 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 50 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Machine not responding during CopyFile() 3 89
Convert Jpg /PNG To GIF 5 120
Printing problem 2 80
Dev express lookupcombo 3 11
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…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

14 Experts available now in Live!

Get 1:1 Help Now