Solved

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

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

13 Experts available now in Live!

Get 1:1 Help Now