Solved

How to convert my pre-XE html help to the native form?

Posted on 2014-09-14
1
258 Views
Last Modified: 2014-09-15
Under the Embarcadero hack in Delphi 2000, I nullified the call to windows help, by the assignment:
Application.Onhelp := FormHelp; - with an associated function.

Actually my calls to help were in this form
  _HHwinMain := HtmlHelp(application.handle, PChar(Help_File + '>MainView'), HH_DISPLAY_INDEX, 0); - or something similar.

I now can't get it to work, and would like to implement the native htmlHelp calls.

How do you do this?
0
Comment
Question by:GrahamDLovell
1 Comment
 

Accepted Solution

by:
GrahamDLovell earned 0 total points
ID: 40324120
Prior to making htmlhelp native, Embarcadero instructed users to include the following global function:
function HtmlHelp(hwndCaller: HWND;
  pszFile: PChar; uCommand: UINT;
  dwData: DWORD): HWND; stdcall;
  external 'HHCTRL.OCX' name 'HtmlHelpA';

Open in new window

This has to be removed when including the unit HTMLHELPViewer in the main uses clause, as does the assignment Application.OnHelp := HH; and the associated HH function.

As before, create your help file in HTMLHelp Workshop (free from Microsoft at http://www.microsoft.com/en-au/download/details.aspx?id=21138)

The steps to incorporate help in VCL are simply:
1. Put HTMLHelpViewer in the main form's uses clause.
2. Assign the helpfile filename (full path) to Application.helpfile. Do this in createform.
3. To display the Table of Contents, make the call: HtmlHelp(0, Application.HelpFile, HH_DISPLAY_TOC, 0);
4. As before, to call help from a button, make the button "kind" bkHelp, and assign the topic number to HelpContext.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

790 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