We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Help with help

keihahe1 asked
Medium Priority
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.
Watch Question

On what tool you use to create the rtf file?
procedure TForm1.Button1Click(...);
  Application.HelpFile := 'DELPHI.HLP';
  Application.Helpcommand(HELP_Key, 0);

Use this code to get the search window of WinHelp

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

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

procedure TForm1.HelpSearch(Sender: TObject);
          with Application do begin

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.
The ZifNab code works as good as mine, however my answer is recomended by Microsoft in this partial case.

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;
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

Thanks Sassas

Have fun,
c.u. ZifNab;
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.