jcf: next linux fix

git-svn-id: trunk@17823 -
This commit is contained in:
paul 2008-12-13 02:11:59 +00:00
parent 8a4c3b1625
commit 9b9281a5ed

View File

@ -39,8 +39,11 @@ interface
uses uses
{ delphi } { delphi }
Windows, SysUtils, Classes, Controls, Forms, {$ifndef fpc}
ComCtrls, ExtCtrls, StdCtrls, ShellAPI, Windows, ShellAPI,
{$endif}
SysUtils, Classes, Controls, Forms,
ComCtrls, ExtCtrls, StdCtrls,
{ local } { local }
ParseTreeNode; ParseTreeNode;
@ -315,6 +318,7 @@ end;
procedure TfrmShowParseTree.FormKeyUp(Sender: TObject; var Key: word; procedure TfrmShowParseTree.FormKeyUp(Sender: TObject; var Key: word;
Shift: TShiftState); Shift: TShiftState);
begin begin
{$ifndef fpc}
if Key = VK_F1 then if Key = VK_F1 then
try try
Application.HelpContext(HELP_MAIN); Application.HelpContext(HELP_MAIN);
@ -322,6 +326,7 @@ begin
if FileExists(Application.HelpFile) then if FileExists(Application.HelpFile) then
ShellExecute(Handle, 'open', PChar(Application.HelpFile), nil, nil, SW_SHOWNORMAL); ShellExecute(Handle, 'open', PChar(Application.HelpFile), nil, nil, SW_SHOWNORMAL);
end; end;
{$endif}
end; end;
initialization initialization