Solved

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

695 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