Autor Beitrag
Kaeawc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41



BeitragVerfasst: Sa 21.01.06 22:07 
Ich will ein Programm bauen, was in einem Formular einen Internet Explorer besitzt und auf Knopfdruck soll in dem Formular die Webseite geändert werden.

Ist so etwas möglich / falls ja, wie?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 21.01.06 22:09 
-TWebbrowser
-TOleContainer

_________________
Markus Kinzler.
Kaeawc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41



BeitragVerfasst: Sa 21.01.06 22:12 
Titel: T...
Wo find ich den TOleContainer?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 21.01.06 22:16 
In der Komponentenpalette im Bereich 'System'

_________________
Markus Kinzler.
Kaeawc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41



BeitragVerfasst: Sa 21.01.06 22:20 
Titel: Funktionsweise..
Habe ehrlich gesagt null Ahnung wie ich mit diesen beiden Komponenten arbeiten kann..

Was muss ich machen damit mein Programm funktioniert?

Bisher sieht es so aus:

ausblenden volle Höhe Delphi-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:
34:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, HTTPApp, HTTPProd, CompProd, PagItems, MidProd, OleCtrls,
  SHDocVw, OleCtnrs;

type
  TForm1 = class(TForm)
    WebBrowser1: TWebBrowser;
    OleContainer1: TOleContainer;
    Button1: TButton;
    procedure FormCreate(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin

end;

end.


Moderiert von user profile iconAXMD: Code- durch Delphi-Tags ersetzt
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 21.01.06 22:25 
Die beiden Komponenten waren als Alternative zu einander gedacht, wobei die erstere wohl besser geeignet ist, da man mit ihr den IE ( bzw. Äquivalent von Mozilla) fernsteuern kann.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.ButtonClick(Sender: TObject);
begin
    WebBrowser.Navigate('http://www.delphi-forum.de/viewtopic.php?p=328431#328431');
end;


Zeigt diesen Thraed an!
Einloggen, um Attachments anzusehen!
_________________
Markus Kinzler.


Zuletzt bearbeitet von mkinzler am Sa 21.01.06 22:35, insgesamt 1-mal bearbeitet
Kaeawc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41



BeitragVerfasst: Sa 21.01.06 22:28 
Danke für die Hilfe aber die eigentliche Frage ist noch nicht beantwortet ^^

Ich will auf Button1.Click eine Website in dem TWebBrowser laden... Aber wie, das ist mir noch ein Rätsel
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 21.01.06 22:31 
Dein bisheriger Code ist schon nicht schlecht... Stichpunkte hast Du bekommen, was hälst Du von der Suche ?
Kaeawc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41



BeitragVerfasst: Sa 21.01.06 22:43 
Titel: Kein Erfolg
Habe mittlerweile 7 Seiten unter Suche durchschaut, doch wie man eine Seite im TWebBrowser aufruft habe ich nirgends gefunden :S

Wäre wirklich nett wenn mir jemand den simplen befehl posten kann...
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Sa 21.01.06 22:45 
user profile iconKaeawc hat folgendes geschrieben:
Danke für die Hilfe aber die eigentliche Frage ist noch nicht beantwortet ^^

Ich will auf Button1.Click eine Website in dem TWebBrowser laden... Aber wie, das ist mir noch ein Rätsel

Der Code steht doch einen Beitrag über Deinem? :nixweiss:
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 21.01.06 22:45 
Schau mal auf mein Beispiel weiter oben ;-) die Methode Navigate z.B.

_________________
Markus Kinzler.
Kaeawc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41



BeitragVerfasst: Sa 21.01.06 22:46 
Oh.. total übersehen ^^

Danke an alle :)
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: So 22.01.06 02:58 
Dann das kannst du dir mal merken:
auf www.euromind.com/iedelphi findest du einen erweiterten TWebbrowser und vieles mehr dazu.
Ich hab neulich auf Torry.net bei den Neuen Komponenten eine Weiterentwickelte Komponente dazu gesehen. Kannste dir mal, wenn du dich weitergehend dafür interessierst und du das schon etwas mehr verstehst, anschauen.

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN