procedure TForm_Main.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
//  if Key=VK_F12 then   Application.HelpCommand(HELP_CONTEXT,HelpContext);
  if Key=VK_F12 then Application.HelpContext(1050100);
end;

解决方案 »

  1.   

    打开帮助主题:
      Application.HelpCommand(HELP_FINDER,HelpContext);
    打开帮助索引:
      Application.HelpCommand(HELP_PARTIALKEY,0);
      

  2.   

    if Key=VK_F3 then showmessage('aa');
      

  3.   

    procedure TMainForm.FormKeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
    begin
      if Key=VK_F1 then
        //...do your thing.....
      if Key=VK_F12 then
        //...do your thing.....
    end;
      

  4.   

    同上,还要加上form1.keypreview :=true