hhctrl.ocx, hh.exe and Ctrl/F

T

trevors_decoy

Hi,

my Delphi app displays help (stored in a .CHM file) by calling the
hhctrl.ocx HtmlHelpA() function:
First with HH_INITIALIZE (passing NULL as the caller window)
Then with HH_DISPLAY_TOPIC
This creates and displays a window with the requested topic, as
expected. However, in the right-hand pane of this window, I cannot use
Ctrl/F to search for a piece of text *within* the displayed topic - the
Ctrl/F is ignored.

As an alternative, I can display the required help topic by calling
CreateProcess() to launch HH.EXE. This also displays the requested
topic, and in this window Ctfl/F works just fine.
However, launching HH.EXE creates a new window each time - it doesn't
reuse an existing window if one is showing, like HtmlHelp() does.

Is there any way of displaying a topic stored in a .CHM file that takes
notice of Ctrl/F, and also reuses an existing htmlhelp window if one is
already showing?
 
G

Guest

Hello Trevor,
my Delphi app displays help (stored in a .CHM file) by calling the
hhctrl.ocx HtmlHelpA() function:
First with HH_INITIALIZE (passing NULL as the caller window)
Then with HH_DISPLAY_TOPIC
This creates and displays a window with the requested topic, as
expected. However, in the right-hand pane of this window, I cannot use
Ctrl/F to search for a piece of text *within* the displayed topic - the
Ctrl/F is ignored.

As an alternative, I can display the required help topic by calling
CreateProcess() to launch HH.EXE. This also displays the requested
topic, and in this window Ctfl/F works just fine.
However, launching HH.EXE creates a new window each time - it doesn't
reuse an existing window if one is showing, like HtmlHelp() does.

Is there any way of displaying a topic stored in a .CHM file that takes
notice of Ctrl/F, and also reuses an existing htmlhelp window if one is
already showing?

I'm not a Delphi programmer but tried from command line and get secondary
window like your CreateProcess() call:
HH.EXE -mapid 10010 ms-its:C:/_working/CHM-example.chm
download example from:
http://www.help-info.de/en/Help_Info_HTMLHelp/hh.htm

The CTRL+F is not working for me in the way you described.
AFAIK - this is only working if you click the topic pane *first* and then
press CTRL+F.

Is this a difference in the two cases you described - means you click *or
not* click the topic first?

Post again and I'll try HH_DISPLAY_TOPIC later for VB6 or VB2005 calls.

You know there is a "Search" (in German "Suchen") tab like shown in this
sample:
http://www.help-info.de/en/Help_Info_HTMLHelp/hh_fts.htm

HTH
Best regards
Ulrich Kulle
**************************
http://www.help-info.de
**************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top