Solved

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

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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