Solved

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

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

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month9 days, 2 hours left to enroll

617 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