Delphi-PRAXiS
Seite 2 von 3     12 3      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi InternetExplorer OLE (https://www.delphipraxis.net/75601-internetexplorer-ole.html)

himitsu 28. Aug 2006 16:39

Re: InternetExplorer OLE
 
Zitat:

Ich möchte einfach gewisse Links extern öffnen
(hoffe ich hab das jetzt nicht falsch verstanden)



schonmal ShellExecute versucht?

einfach statt 'ner Datei die URL angeben.

Vorteil: der Link wird im Standardbrowser geöffnet (also nicht unbedingt im IE)



Ansonsten könnte man die URL auch an die IExplor.exe (oder so ähnlich) als Parameter übergeben.


Und für die verschiedenen Varianten mit ShellExecute gibt es massig Threads hier im Forum (falls dazu noch Fragen auftauchen) ^^

API 28. Aug 2006 17:18

Re: InternetExplorer OLE
 
Zitat:

Zitat von API
Ich möchte einfach gewisse Links extern öffnen nur über CreateOleObject

Shellexecute werde ich nur im Notfall nehmen. Denn so hätte ich keinen direkten Zugriff auf den "Internet Explorer_Server"

API 12. Sep 2006 08:14

Re: InternetExplorer OLE
 
*PUSH*

TKC 12. Sep 2006 08:18

Re: InternetExplorer OLE
 
Zitat:

Zitat von API
es flasht auch so noch:

Was genau ist denn dein Problem ???

API 12. Sep 2006 08:23

Re: InternetExplorer OLE
 
Zitat:

Zitat von API
ich erstelle per
Delphi-Quellcode:
CreateOleObject('InternetExplorer.Application');
ein IE Objekt. Wie kann ich dieses in den Vordergrund bringen?
(das Taskicon flasht nur...?)


mkinzler 12. Sep 2006 08:30

Re: InternetExplorer OLE
 
Hast du mal geschaut, ob das Control ne Methode .Show() o.ä. besitzt?

API 12. Sep 2006 08:33

Re: InternetExplorer OLE
 
Zitat:

Zitat von mkinzler
Hast du mal geschaut, ob das Control ne Methode .Show() o.ä. besitzt?

angezeigt wird es ja, nur nicht im Vordergrund. Das Objekt heisst IWebBrowser2

TKC 12. Sep 2006 08:39

Re: InternetExplorer OLE
 
Wie wärs damit ?

Delphi-Quellcode:
procedure ieopen(Url:string);
var
  ieo                        : olevariant;
begin
  ieo := CreateOleObject('InternetExplorer.Application');
  ieo.visible := true;
  BringWindowToTop(ieo.HWND);
  ieo.navigate(Url);
end;

TKC 14. Sep 2006 14:17

Re: InternetExplorer OLE
 
war ja klar das da keine Antwort kommt .. nachdem er aller 5 Minuten nen neuen Thread erstellt hat.

Lun 17. Nov 2006 09:50

Re: InternetExplorer OLE
 
@ ACE-ppc

Nicht, schlimm. Es hat sich trotzdem gelohnt das Du es gepostet hast. Ich brauchte das heute und es funktioniert :)

thx

greetz Lun


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:44 Uhr.
Seite 2 von 3     12 3      

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