
|
WinHelp problem (popups)
I'm maintaining a Delphi application which is using WinHelp.
When the user presses F1, the application calls the PopupID macro.
This shows a WinHelp popup.
Everything is ok, but.. when I press ESC, the focus, instead of returning to my application, somehow remains on WinHelp32 (which is not visible).
If the user presses F1 again, "help on help" appears - because the focus is on the invisible WinHelp, instead of on my application.
The PopupId macro is called like this:
WinHelp(0, PChar(HLP_Filename), HELP_COMMAND, Integer(HelpMacro));
HelpMacro is a PChar containing PopupId("filename", "popup id")
How do I solve this?
How do I change the code, or the HPJ, so that when the user presses ESC, WinHelp quits (and goes to hell where it belongs)?
I tried many ways of doing this, and all failed.
Thank you very much!
MX
Saturday, April 3, 2004
This page might have a COM DLL that you can replace your code with:
http://www.mvps.org/htmlhelpcenter
It's called the "Help Technology Centre" if the link doesn't work.
Wayne
Sunday, April 4, 2004
BTW, it's mostly free code with the source on that page.
Wayne
Sunday, April 4, 2004
Thank you very much! I shall study the pages.
MX
Monday, April 5, 2004
Recent Topics
Fog Creek Home
|