Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Mar : Context-sensitive Help

www.cryer.info
Managed Newsgroup Archive

Context-sensitive Help

Subject:Context-sensitive Help
Posted by:"Steve Weston" (sweston{no spam}@westonmuir.com)
Date:Sun, 4 Mar 2007 09:13:04

I'm converting an app from D6 to BDS2006. The old app worked fine when it
requested a display the windows help file using the following TApplication
methods:
    Application.HelpCommand(HELP_FINDER, 0);
    Application.HelpCommand(HELP_PARTIALKEY, Longint(EmptyString));
    Application.HelpCommand(HELP_CONTEXT, Technical_Support);
    Application.HelpContext(HelpContext);
and
    Application.HelpCommand(HELP_QUIT, 0); when the app ends.

HELP_FINDER should display help topic zero, which is my help contents topic
number, but does nothing -- no help display, no exception.

HELP_PARTIALKEY should display the help topic search functionality, but does
nothing -- no help display, no exception.

HELP_CONTEXT (in both forms) should display the help topic passed in the
var, but raises an EHelpSystemException, "No context-sensitive help
installed".

The help file value is set for the app and the help file is in the app
executable's starting folder. The help file is a standard Win9x .hlp file
along with the usual .cnt contents file.

Your help will be appreciated.
--
Steven S. Weston

Replies:

www.cryer.info
Managed Newsgroup Archive