Solved

Jump to Html help topic and tile the main app and help windows

Posted on 2001-06-15
2
232 Views
Last Modified: 2010-04-06
I'm trying to implement context sensitive help in delphi 5, but since delphi
5 doesn't support the HTML  help, I had to resort to the API provided by the
HHCtrl.ocx control.  I got some code from the usenet which  wraps the API to
delphi functions and structures.  I can get the HTML help to appear, jumping
to the  particular help section in the file based on the context number by
utilizing the following code:

procedure GotToHelpContext(intContextID:integer);
var
  ret:THandle;
begin
  ret := hh(application.Handle,pchar('C:\MyHelp.chm'), HH_HELP_CONTEXT,
intContextID);
end;

There is a ton of code for the usenet that I can post if needed that shows the hh function above.

But my client wants the help window to appear in a certain position on the
screen.  I could use the  SetWindowPos API call to reposition the window,
but the window flashes because makes its appearance in the  default position
first before moving to the desired position.  I know I can set the
HH_WinType structure  with the my desired coordinates and window size, but I
need to know what goes in that structure.  I tried  getting the HH_WinType
structure using the HH_GET_WIN_TYPE message, but the structure doesn't get
filled.   Calling HH_SET_WIN_TYPE with the returned structure causes an
access violation.  What am I doing wrong?
0
Comment
Question by:jfreisen
2 Comments
 
LVL 13

Accepted Solution

by:
Epsylon earned 100 total points
ID: 6198592
Maybe the htmlmhelp.zip on this page can help you:

http://www.delphi-jedi.org/Jedi:APILIBRARY:35635
0
 

Author Comment

by:jfreisen
ID: 6214260
That did the trick, thanks very much.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

785 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