Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

HelpFile and EnableHelp properties

edited March 2009 in End User
Delphi 6, RB 10.07.

I have a different help file that I put out with ReportBuilder to our end
users. I have tried setting ppDesigner1.HelpFile := \helpfile.hlp in the Designer's OnShow and OnCreate events, but it
still always shows the RBuilder.hlp file that comes when you install it into
Delphi.

I know this because in the OnHelp event, I put in a debug to show the
aHelpFile parameter, which displayed "C:\Program Files\Borland\Delphi
6\RBuilder\RBuilder.hlp".

Also, I wanted to disable F1 bringing up the help as my file is not context
sensitive. According to the documentation, this is exactly what the
ppDesigner.EnableHelp property is supposed to do. However, it makes no
difference whether this is set to True or False.

Any ideas?

I have worked around it by changing the aHelpFile parameter in the OnHelp
event to my help file.

Thanks,
Jason.

--
Jason Sweby
Software Development Manager,
Carval Computing Limited, Plymouth, UK

Payroll - HR - T&A - Access Control

Comments

  • edited March 2009

    Thanks for reporting this. I tested this with RB 11.03 and found the same
    behavoir. The EnableHelp and HelpFile properties are not being honored. This
    will be fixed for RB 11.04

    The documentation for EnableHelp is not accurate. The intent is to suppress
    help. There is no distinction between F1 or Help menu being selected.

    A simple work around is to use the OnHelp event as you are doing now. That
    event gives you total control. You can either overrride the parameters that
    passed to it or set aCallHelp to False and invoke the help with some custom
    code.

    When the user presses F1, the aKeyPhrase parameter of the OnHelp event will
    be specified (when the Help menu is selected the aKeyPhrase is blank). You
    can use that information to customized Help processing. Ignore the KeyPhrase
    or override it back to blank.

    example

    aHelpFile := c:\myHelpFile.hlp;

    if (aKeyPhrase <> '') then
    begin
    aKeyPhrase := ''; // force contents to be displayed
    // or
    // aCallHelp := False; // suppress help
    end;



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.