Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Kann man mit Delphi Formulare im TWebbrowser füllen? (https://www.delphipraxis.net/101798-kann-man-mit-delphi-formulare-im-twebbrowser-fuellen.html)

marabu 5. Nov 2007 09:24

Re: Kann man mit Delphi Formulare im TWebbrowser füllen?
 
Hi,

ist auch nicht so schwierig. Probiere es mal so:

Delphi-Quellcode:
frm.Elements.Item('radio').Checked := True;
Statt 'radio' musst du natürlich den korrekten Namen einsetzen.

Freundliche Grüße

tomate007 5. Nov 2007 09:34

Re: Kann man mit Delphi Formulare im TWebbrowser füllen?
 
he da haste mir so viel Hoffnung gemacht ^^ aber es kommt folgender Fehler Methode Checked wird vom Automatisierungsobjekt nicht unterstützt.
Naja und der Prozess wurde natürlich angehalten :D

Hier mal der Sourcecode der Radioboxen:

<input id="field_Orders_TypeOfAccounting" name="field_Orders_TypeOfAccounting" value="repair_without_estimate">ohne Kostenschätzung
<input id="field_Orders_TypeOfAccounting" name="field_Orders_TypeOfAccounting" value="repair_with_estimate">mit detaillierter Kostenschätzung (kostenpfl.)
<input id="field_Orders_TypeOfAccounting" name="field_Orders_TypeOfAccounting" value="repair_with_estimate_from_limit">mit Kostenschätzung ab Betrag €

ich möchte das 1. anklicken lassen also mit dem value repair_without_estimate. Wie mach ich das?! :D ich hab echt kein Plan mehr, ansonsten läuft mein Prog super :D

hier mal den Code den ich nach deinem Beispiel gemacht habe.

frm.Elements.Item('field_Orders_TypeOfAccounting') .Checked := true;

aber wie gesagt... es will nicht ^^

Danke für die Hilfe

MFG
Andre

marabu 5. Nov 2007 10:45

Re: Kann man mit Delphi Formulare im TWebbrowser füllen?
 
Du hast es fast richtig gemacht:

Delphi-Quellcode:
frm.Elements.Item('field_Orders_TypeOfAccounting', 0).Checked := True; // ohne Kostenschätzung
frm.Elements.Item('field_Orders_TypeOfAccounting', 1).Click; // mit detail. Kostenschätzung
Wenn mehrere Elemente mit gleichem Namen existieren, dann musst du als zweiten Parameter einen Index angeben.

Viel Erfolg.

Mokuba01 17. Nov 2007 17:51

Re: Kann man mit Delphi Formulare im TWebbrowser füllen?
 
hi gibts da auch irgendwie etwas für "Delphi4 Standard"?

API 17. Nov 2007 17:55

Re: Kann man mit Delphi Formulare im TWebbrowser füllen?
 
Zitat:

Zitat von Mokuba01
hi gibts da auch irgendwie etwas für "Delphi4 Standard"?

Meinst du den TWebbrowser?

Mokuba01 17. Nov 2007 17:57

Re: Kann man mit Delphi Formulare im TWebbrowser füllen?
 
Zitat:

Zitat von API
Zitat:

Zitat von Mokuba01
hi gibts da auch irgendwie etwas für "Delphi4 Standard"?

Meinst du den TWebbrowser?

ich meine generell alles den TWebBrowser die Variants.dcu halt alles was Delphi4 Standard nicht hat

API 17. Nov 2007 18:13

Re: Kann man mit Delphi Formulare im TWebbrowser füllen?
 
Zitat:

Zitat von Mokuba01
Zitat:

Zitat von API
Zitat:

Zitat von Mokuba01
hi gibts da auch irgendwie etwas für "Delphi4 Standard"?

Meinst du den TWebbrowser?

ich meine generell alles den TWebBrowser die Variants.dcu halt alles was Delphi4 Standard nicht hat


Internet Explorer ActiveX-Komponente nutzen

Mokuba01 17. Nov 2007 18:23

Re: Kann man mit Delphi Formulare im TWebbrowser füllen?
 
und wo kann ich dieses "Microsoft Internet Controls (Version 1.1)-AktiveX-Komponente" downloaden?

API 17. Nov 2007 18:32

Re: Kann man mit Delphi Formulare im TWebbrowser füllen?
 
Zitat:

Zitat von Mokuba01
und wo kann ich dieses "Microsoft Internet Controls (Version 1.1)-AktiveX-Komponente" downloaden?


http://www.delphipraxis.net/internal...ct.php?t=21524


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:22 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