Solved

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

Posted on 2001-06-15
2
231 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

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
A short film showing how OnPage and Connectwise integration works.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

929 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

12 Experts available now in Live!

Get 1:1 Help Now