Solved

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

Posted on 2014-09-14
1
255 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

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

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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

21 Experts available now in Live!

Get 1:1 Help Now