Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application help file not displaying

Status
Not open for further replies.

ChrisGSchultz

IS-IT--Management
Jul 8, 2001
82
US
I have an application with a help file in the application directory, which works fine in D6, but in D7 will not load the help file (which has [tt].HLP[/tt], [tt].CNT[/tt]) when the Help button is clicked. However, it will display the context related help when F1 is pressed.

The major controls have [tt]HelpType[/tt] set to [tt]htContext[/tt], and an appropriate [tt]HelpContext[/tt] set.
The help button performs the following:
Code:
procedure TF_browser.B_HelpClick(Sender: TObject);
// Display system help
begin
  if Application.CurrentHelpFile = '' then
    Application.HelpFile := 'encorep.hlp';
  Application.HelpCommand(HELP_FINDER, 0);
end;

and an associated OnHelp handler
Code:
function TF_browser.FormHelp(Command: Word; Data: Integer;
  var CallHelp: Boolean): Boolean;
begin
  CallHelp := TRUE;
end;

Can anyone suggest why it works in D6 Pro and not D7 Pro (BTW, I'm running under WinXP Pro)?[sad]
Have I missed something or is there a patch needed?

Cheers


Chris ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top