AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Popup mit TWebBrowser

Ein Thema von endeffects · begonnen am 6. Aug 2004 · letzter Beitrag vom 12. Aug 2004
Antwort Antwort
endeffects

Registriert seit: 27. Jun 2004
450 Beiträge
 
#1

Popup mit TWebBrowser

  Alt 6. Aug 2004, 12:46
Hallo,

ich bin auf der Suche nach einer Möglichkeit mit dem TWebBrowser
ein neues Fenster (ohne Navigation, Statusbar und Menü) zu öffnen.

Bisher öffne ich ein neue Seite über:
FWebBrowser.Navigate('http://test.com', EmptyParam, EmptyParam, EmptyParam, EmptyParam);

Das Problem hierbei ist das die Variablen EmptyParam vom Typ OleVariant sind
und ich nicht weiß wie und ob ich dort Veränderungen vornehmen kann.

Hat Jemand vielleicht eine Idee wie ich nun ein Popup Fenster öffnen kann?
  Mit Zitat antworten Zitat
shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#2

Re: Popup mit TWebBrowser

  Alt 6. Aug 2004, 13:04
Zitat von endeffects:
ich bin auf der Suche nach einer Möglichkeit mit dem TWebBrowser
ein neues Fenster (ohne Navigation, Statusbar und Menü) zu öffnen.

Bisher öffne ich ein neue Seite über:
FWebBrowser.Navigate('http://test.com', EmptyParam, EmptyParam, EmptyParam, EmptyParam);

Das Problem hierbei ist das die Variablen EmptyParam vom Typ OleVariant sind
und ich nicht weiß wie und ob ich dort Veränderungen vornehmen kann.

Hat Jemand vielleicht eine Idee wie ich nun ein Popup Fenster öffnen kann?
Delphi-Quellcode:
var
   BrowserFlags : OleVariant;
begin
{ Flags:
Constant            Value Meaning
NavOpenInNewWindow  $01 Open the resource or file in a new window.
NavNoHistory        $02 Do not add the resource or file to the history list. The new page replaces the current page in the list.
NavNoReadFromCache  $04 Do not read from the disk cache for this navigation.
NavNoWriteToCache    $08 Do not write the results of this navigation to the disk cache.
NavAllowAutosearch  $10 If the navigation fails, the Web browser attempts to navigate common root domains (.com, .org, and so on). If this still fails, the URL is passed to a search engine.
}

   BrowserFlags := $01;

   FWebBrowser.Navigate('http://test.com', BrowserFlags, EmptyParam, EmptyParam, EmptyParam);
Andreas
  Mit Zitat antworten Zitat
endeffects

Registriert seit: 27. Jun 2004
450 Beiträge
 
#3

Re: Popup mit TWebBrowser

  Alt 6. Aug 2004, 13:51
oh danke,
zumindestens kompiliert er den teil jetzt, allerdings bekomm
ich einen exception error an dieser stelle, hab diverse parameter
und varianten ausprobiert, weiß allerdings nicht woran das liegt =(
  Mit Zitat antworten Zitat
Benutzerbild von S2B
S2B

Registriert seit: 1. Feb 2004
Ort: Aachen
1.268 Beiträge
 
#4

Re: Popup mit TWebBrowser

  Alt 6. Aug 2004, 14:15
Zitat von endeffects:
FWebBrowser.Navigate('http://test.com', EmptyParam, EmptyParam, EmptyParam, EmptyParam);
Ähm, mal ne Frage...
Warum hast du die ganzen leeren Parameter hinten dran? Die sind doch optional, oder?
Simon Praetorius
Gruß
S2B
  Mit Zitat antworten Zitat
endeffects

Registriert seit: 27. Jun 2004
450 Beiträge
 
#5

Re: Popup mit TWebBrowser

  Alt 6. Aug 2004, 17:01
nein in diesem fall sind sie das nicht,
ich hab mir zu der navigate methode nun nocheinmal gründlich
die hilfe angesehen und denke nicht das ich damit ein entsprechendes
explorer fenster (popup) öffnen kann, hat jemand vielleicht sonst noch
eine idee wie ich das lösen könnte?
  Mit Zitat antworten Zitat
endeffects

Registriert seit: 27. Jun 2004
450 Beiträge
 
#6

Re: Popup mit TWebBrowser

  Alt 12. Aug 2004, 13:37
Delphi-Quellcode:
procedure OpenIE();
var
  ie: IWebBrowser2;
  Url, Flags, TargetFrameName, PostData, Headers: OleVariant;
begin
  // Uses ComObj + SHDocVw_TLB
  ie := CreateOleObject('InternetExplorer.Application') as IWebBrowser2;
  ie.Left := 100;
  ie.Top := 100;
  ie.Width := 640;
  ie.Height := 400;
  ie.MenuBar := false;
  ie.AddressBar := false;
  ie.Resizable := false;
  ie.StatusBar := false;
  ie.ToolBar := 0;
  Url := 'www.cryer.co.uk';
  ie.Navigate2(Url,Flags,TargetFrameName,PostData,Headers);
  ie.Visible := true;
end;
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:57 Uhr.
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