Solved

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

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

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

Suggested Solutions

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…
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…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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