I run into problems with the latest release of the IE7.
In the past it was no problem to launch the IE with an anchor:
I had first post this question on german delphipraxis:
http://www.delphipraxis.net/topic105767 ... t+ie7.html
- Code: Select all
unit Test2;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ShellAPI, Registry,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
ts : string;
urlname : string;
begin
with TRegistry.Create do
try
rootkey := HKEY_CLASSES_ROOT;
OpenKey('\htmlfile\shell\open\command', False);
try
ts := ReadString('');
except
ts := '';
end;
CloseKey;
finally
Free;
end;
if ts <> '' then
Begin
ts := Copy(ts, Pos('"', ts) + 1, Length(ts));
ts := Copy(ts, 1, Pos('"', ts) - 1);
urlname := 'file://c:\Programme\newLISP\newlisp_manual.html#setq';
ShellExecute(0, 'open', PChar(ts), PChar(urlname), nil, SW_SHOW);
End;
end;
end.
So anyone an idea how to launch IE7 with an anchor?