F1 with SkinManager

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37365
    Lauri
    Participant

    I would like use, without CHM help file, the F1 button to appear an Form inside my own app. The form's OnKeyDown event is: “if (Key = VK_F1) then FormHelpWithSkinManager.ShowModal;” command. But I got error: “No context-sensitive help installed.” What is the solution? Without SkinManager it's OK. I attached my Test project.

    Lauri.

    #56247
    Lauri
    Participant

    It's done! Must use the HTMLHelpViewer! :a1:

    #56273
    Support
    Keymaster

    If you need to avoid this system calling of context help, you can catch the WM_HELP message and handle it by your self.

    For example, add this procedure to your form public part:

    Code:
    procedure WndProc(var Message: TMessage); override;

    procedure TForm10.WndProc(var Message: TMessage);
    begin
    case Message.Msg of
    WM_HELP: Exit;
    end;
    inherited;
    end;

    And “TForm10.FormKeyDown” procedure will not be called while Form10.KeyPreview property is False.

    I hope, it helps.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.