Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi TWebBrowser -> POPUP URL? (https://www.delphipraxis.net/41076-twebbrowser-popup-url.html)

demo13 25. Feb 2005 17:01

Re: TWebBrowser -> POPUP URL?
 
danke schon mal das funktioniert jetzt!!

Zitat:

NewWindow := TForm4.Create(self);
NewWindow.Show;
ppDisp := NewWindow.web.DefaultDispatch;
^
|
das hab ich schon mal ausprobiert aber mein programm ist deswegen immer abgestürzt. deswegen die frage...

BorlanDelphiUser 25. Feb 2005 17:06

Re: TWebBrowser -> POPUP URL?
 
@toms ... hab da noch folgendes Problem

Delphi-Quellcode:
procedure TForm1.WebBrowserNewWindow2(ASender: TObject;
  var ppDisp: IDispatch; var Cancel: WordBool);
var
  URL: WideString;
begin
  URL := ((TWebBrowser_neu(ASender).document as IHTMLDocument2).activeElement as IHTMLElement).getAttribute('href', 0);
end;
Zitat:

[Error] Unit1.pas(35): Undeclared identifier: 'IHTMLDocument2'
[Error] Unit1.pas(35): Operator not applicable to this operand type
[Error] Unit1.pas(35): Undeclared identifier: 'IHTMLElement'
[Error] Unit1.pas(35): Operator not applicable to this operand type
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'

toms 25. Feb 2005 17:20

Re: TWebBrowser -> POPUP URL?
 
Delphi-Quellcode:
uses
  MSHTML;
Hier im Forum suchenMSHTML importieren


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:05 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz