Setting HelpContext or trap F1 key?

Hello,

When the users press F1 or selects "Help | Help Contents" while in the Fast Reports designer, I want to display our help topic. How do you assign the HelpContext in Fast reports so it pulls up our customized help? And how would I set it when the user is in the Preview window? (I can't find any reference to how to do this in the manuals or on line.)

Thank you!

Dave

Comments

  • edited 1:23PM

    Thanks, but that is not really what I am after. Many of our customer sites use web based help so we want to call our central web help file. Is there anyway to trap the F1 key press or other method to call our customized help?

    Dave
  • gpigpi
    edited 1:23PM
    You should modify FR's sources
    See frxEditMemo.pas
    procedure TfrxMemoEditorForm.FormKeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
    begin
      if Key = VK_F1 then
        frxResources.Help(Self);
    end;
    
    frxRes.pas
    procedure TfrxResources.Help(Sender: TObject);
    {$IFNDEF FPC}
    var
      i: Integer;
      topic: String;
    {$ENDIF}
    begin
      {$IFDEF FPC}
      {$note TfrxResources.Help not implemented.}
      {$ELSE}
      topic := '';
      if Sender <> nil then
        for i := 0 to helpTopicsCount - 1 do
          if CompareText(helpTopics[i].Sender, Sender.ClassName) = 0 then
            topic := '::/' + helpTopics[i].Topic;
    {$IFNDEF FR_COM}
      frxDisplayHHTopic(Application.Handle, ExtractFilePath(Application.ExeName) + FHelpFile + topic);
    {$ELSE}
      frxDisplayHHTopic(Application.Handle, FHelpFile + topic);
    {$ENDIF}
    {$ENDIF}
    end;
    
    for example
  • edited 1:23PM
    Thanks!

    (I missed this post earlier and just saw it now.)

    Dave

Leave a Comment