Autor Beitrag
Killi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Do 12.06.03 12:38 
Hi!

Ich hab noch keine Ahnung wie ich einen eigenen Brower programmieren soll, aber ich weiß dass es dafür eine Komponente gibt (ich benutze D6) - und zwar die TWebBrowser Kompo....jetzt meine Frage: Kann mir jemand helfen bei den wichtigsten Dingen?
Man müsste oben die URL eingeben können, hinspringen und drucken usw können...
kann mir jmd helfen?
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Do 12.06.03 13:30 
also - hab mal rumprobiert und nat. gleich ein paar probleme....wenn ich auf meinen Button klicke dann soll er das hier machen:
ausblenden Quelltext
1:
        Browser.Navigate(EURL.Text);					

warum macht ers nicht? Er lädt nur Seiten die ich schonmal besucht habe, d.h. Offline....will aber ne Verbindung aufbauen - und offline ist auf FALSE....
Ak-Alex
Gast
Erhaltene Danke: 1



BeitragVerfasst: Do 12.06.03 21:54 
ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, OleCtrls, SHDocVw;

type
  TForm1 = class(TForm)
    WebBrowser1: TWebBrowser;
    Edit1: TEdit;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
 Webbrowser1.Navigate(Edit1.Text);
end;

end.



So funktioniert es....
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Do 12.06.03 22:12 
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Fr 13.06.03 08:25 
Sagt mal...ich hab doch extra geschrieben dass mein
ausblenden Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
        WebBrowser1.Navigate('www.audi.de'); //o.auch Edit1.Text, geht beides net
end;
NICHT funzt...das wundert mich ja gerade, weil alle anderen anscheinend keine Probleme damit haben
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Fr 13.06.03 18:19 
darum solltest du ja auch nicht dein code schnipsel posten sondern das komplette project ;)

denn wenn ich es so übernehme wirds bei mir lauf ... jede wette

kannst mich aber gerne auch an msgen ... irgendwas der untigen wirst du ja sicher haben

_________________
hans bist du das ?
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Fr 13.06.03 23:25 
hier der code - ist genau das gleiche wie oben steht und ANSCHEINEND tut!!! Habe Delphi 6 mit Win98
ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, OleCtrls, SHDocVw;

type
  TForm1 = class(TForm)
    WebBrowser1: TWebBrowser;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
        WebBrowser1.Navigate('www.audi.de');
end;

end.
Ak-Alex
Gast
Erhaltene Danke: 1



BeitragVerfasst: Sa 14.06.03 00:03 
probiers mal mit navigate2
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Sa 14.06.03 00:04 
ausblenden Quelltext
1:
2:
3:
4:
5:
darum solltest du ja auch nicht dein code schnipsel posten sondern das komplette project  

denn wenn ich es so übernehme wirds bei mir lauf ... jede wette 

kannst mich aber gerne auch an msgen ... irgendwas der untigen wirst du ja sicher haben


ich glaub wir sind in einer raum-zeit-schleife gefangen

_________________
hans bist du das ?
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Sa 14.06.03 12:59 
hi

setzt doch einfach mal die Offline Property des Webbrowser auf false ;-)

fcg

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Sa 14.06.03 13:22 
@fcg: hättest du ALLES gelesen, hättest du gemerkt dass sie schon auf FALSE steht!!!

jetzt hab ichs mit Navigate2 gemacht:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.Button1Click(Sender: TObject);
var
        Flag: OleVariant;
        adr: OleVariant;
begin
        adr:= 'www.audi.de';
        Flag := 2;
        WebBrowser1.Navigate2(adr, Flag);
end;

tut aber trotzdem nich....zuerst kommt "Aktion abgebrochen" und wenn ich nochmals klicke kommt "Die Seite kann nicht angezeigt werden".....
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Sa 14.06.03 13:32 
oh sorry, habe ich übersehen... :oops:

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.
olliistmeinname
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59



BeitragVerfasst: Sa 14.06.03 13:36 
versuch mal ein http:// vor der adresse zu setzen.


mfg OLLI

_________________
Olliistmeinname und bin da für jede Dame
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Sa 14.06.03 13:47 
tut auch nicht aber war ne gute Idee...hab schon gedacht "wenns das jetzt war......grml :roll: " ABer tut nicht...
Steven
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: So 15.06.03 02:22 
welche delphi version benutzt du?
hier ist ein beispiel
[url]www.fusshoeller.com/webbrowser.rar[/url]
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: So 15.06.03 20:11 
Ich benutze Delphi6 wie schonmal geschrieben...und das Bsp. ist ja echt schön, sieht haargenau aus wie mein Projekt, aber es kommt immer das gleiche! Aktion abgebrochen und Seite kann nicht angezeigt werden!
Liegts evtl. am Win98???
Tat das Bsp bei dir?
Steven
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: So 15.06.03 20:33 
welche browserversion hast du drauf?
das beispiel funktioniert bei mir...
du kannst mir ja mal dein beispiel schicken...
an hodah@web.de
Ak-Alex
Gast
Erhaltene Danke: 1



BeitragVerfasst: So 15.06.03 20:40 
das liegt an deinen real internet explorer einstellungen....



die twebbrowser kombo greift auf deine falschen einstellungen vom ie zurück....
Steven
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: So 15.06.03 21:30 
läuft den dein internet explorer?
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Mo 16.06.03 22:31 
Hi!
Hä??? Welche EInstellungen? Ja, mein IE tut - und ich hab die 6er Version drauf!
Habs heute in de rArbeit nachprogrammiert - tut alles wunderbar! Wieso denn bei mir daheim nicht??? Liegts wirklich nicht an Win98? Wenn nicht - dann...:WELCHE Einstellungen?