jcf: use OpenURL function instead to open urls

git-svn-id: trunk@22019 -
This commit is contained in:
paul 2009-10-04 06:20:37 +00:00
parent af8d456d33
commit 323fe7ecc1

View File

@ -67,18 +67,16 @@ uses
{$ifndef fpc} {$ifndef fpc}
Windows, ShellAPI, URLMon, Windows, ShellAPI, URLMon,
{$else} {$else}
LResources, HelpIntfs, LResources, LCLProc,
{$endif} {$endif}
{ local } { local }
JcfVersionConsts, JCFHelp, JcfFontSetFunctions, JcfStringUtils; JcfVersionConsts, JCFHelp, JcfFontSetFunctions, JcfStringUtils;
{$ifdef fpc} {$ifdef fpc}
procedure ShowURL(const ps: string); procedure ShowURL(const ps: string);
var
err: String;
begin begin
// do it silent // do it silent
HelpIntfs.ShowHelp(ps, 'JCF', 'text/html', err); OpenURL(ps);
end; end;
{$else} {$else}
procedure ShowURL(const ps: string); procedure ShowURL(const ps: string);