| Autor |
Beitrag |
matze
      
Beiträge: 4613
Erhaltene Danke: 24
XP home, prof
Delphi 2009 Prof,
|
Verfasst: Mo 30.09.02 18:36
Hallo !!!
wenn ich in meiner IE kompo eine HTML Seite darstelle, die eine Textarea drin hat, kann ich mit der Entertaste keinen Zeilenumbruch einfügen !!
Wie kann ich das ändern ?
_________________ In the beginning was the word.
And the word was content-type: text/plain.
|
|
DeCodeGuru
      
Beiträge: 1333
Erhaltene Danke: 1
Arch Linux
Eclipse
|
Verfasst: Mo 30.09.02 19:26
bist du sicher, dass es an der Komponente liegt? Ich glaube nämlich nicht, wüsste jetzt aber auch nicht, woran das liegen kann.
_________________ Viele Grüße
Jakob
|
|
matze 
      
Beiträge: 4613
Erhaltene Danke: 24
XP home, prof
Delphi 2009 Prof,
|
Verfasst: Mo 30.09.02 19:55
Doch,ich bin mir ziemlich sicher, dass es an der Kompo liegt, denn wenn ich die Page in meinem Browser aufrufe (auch IE) kann ich Enter drücken, und dann wird eine neue Zeile angefangen !!!
_________________ In the beginning was the word.
And the word was content-type: text/plain.
|
|
DeCodeGuru
      
Beiträge: 1333
Erhaltene Danke: 1
Arch Linux
Eclipse
|
Verfasst: Mo 30.09.02 20:16
aber die Kompo ist ja nur eine Kapselung vom IE. Sag mir mal die URL, damit ich das auch mal testen kann.
_________________ Viele Grüße
Jakob
|
|
matze 
      
Beiträge: 4613
Erhaltene Danke: 24
XP home, prof
Delphi 2009 Prof,
|
Verfasst: Mo 30.09.02 20:30
die url ist omg.ath.cx/kritik.php?titel=kritik
Das ist ein simples TEXTAREA Feld !!!
Achja: Bitte nix reinschreiben und nicht senden klicken, sonst werden ein paar leute sauer 
_________________ In the beginning was the word.
And the word was content-type: text/plain.
|
|
DeCodeGuru
      
Beiträge: 1333
Erhaltene Danke: 1
Arch Linux
Eclipse
|
Verfasst: Mo 30.09.02 20:36
| Zitat: | | Achja: Bitte nix reinschreiben und nicht senden klicken, sonst werden ein paar leute sauer |
Oooops, zu spät  Nein, keine Angst, ich habe nichts gemacht.
Also, ich habe es eben getestet und es ist echt so, wie du gesagt hat. Ich kann mir das nicht erklären.  Es müsste funktionen, was es allerdings nicht tut. Aber Gott sei dank, sind wir ja nicht alleine im Forum. Da gibt es sicher noch viele Leute, die ne Lösung haben. 
_________________ Viele Grüße
Jakob
|
|
matze 
      
Beiträge: 4613
Erhaltene Danke: 24
XP home, prof
Delphi 2009 Prof,
|
Verfasst: Di 01.10.02 06:22
taj..... es tut einfach nicht !!! Ist das ein "hidden feature" oder was ???
oder ist der IE nicht sauber implementiert ??
_________________ In the beginning was the word.
And the word was content-type: text/plain.
|
|
Chatfix
      
Beiträge: 1583
Erhaltene Danke: 10
Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
|
Verfasst: Mi 02.10.02 15:39
genau das problem hab ich auch.. hab das auch schon gepostet, aber es kamen keine antworten 
_________________ Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
|
|
matze 
      
Beiträge: 4613
Erhaltene Danke: 24
XP home, prof
Delphi 2009 Prof,
|
Verfasst: Mi 02.10.02 16:30
also ich hoffe mal, dass so fixe typen wie DeCodeGuru oder MathiasSimmack eine lösung finden !!!
Ich hab bisher nix brauchbares gefunden !!!
_________________ In the beginning was the word.
And the word was content-type: text/plain.
|
|
FriFra
      
Beiträge: 557
Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
|
Verfasst: Do 03.10.02 14:51
 Ich hatte das Problem auch! Aber es lässt sich abstellen:
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: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76:
| interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, SHDocVw_TLB, ActiveX, StdCtrls;
type TForm1 = class(TForm) WebBrowser1: TWebBrowser; Button1: TButton; Button2: TButton; procedure FormDestroy(Sender: TObject); procedure FormCreate(Sender: TObject); procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); private FOleInPlaceActiveObject: IOleInPlaceActiveObject; procedure MsgHandler(var Msg: TMsg; var Handled: Boolean); public end;
var Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormDestroy(Sender: TObject); begin FOleInPlaceActiveObject := nil; end;
procedure TForm1.FormCreate(Sender: TObject); begin Application.OnMessage := MsgHandler; end;
procedure TForm1.MsgHandler(var Msg: TMsg; var Handled: Boolean); var iOIPAO: IOleInPlaceActiveObject; Dispatch: IDispatch; begin if (WebBrowser1 = nil) then begin Handled := False; Exit; end;
Handled := (IsDialogMessage(WebBrowser1.Handle, Msg) = True);
if (Handled) and (not WebBrowser1.Busy) then begin if FOleInPlaceActiveObject = nil then begin Dispatch := WebBrowser1.Application; if Dispatch <> nil then begin Dispatch.QueryInterface(IOleInPlaceActiveObject, iOIPAO); if iOIPAO <> nil then FOleInPlaceActiveObject := iOIPAO; end; end;
if FOleInPlaceActiveObject <> nil then if ((Msg.message = WM_KEYDOWN) or (Msg.message = WM_KEYUP)) and ((Msg.wParam = VK_BACK) or (Msg.wParam = VK_LEFT) or (Msg.wParam = VK_RIGHT)) then else FOleInPlaceActiveObject.TranslateAccelerator(Msg); end; end; |
Moderiert von raziel: Code- durch Delphi-Tags ersetzt.
|
|
matze 
      
Beiträge: 4613
Erhaltene Danke: 24
XP home, prof
Delphi 2009 Prof,
|
Verfasst: Do 03.10.02 14:59
ufff..... das ist aber zeimlich aufwändig für so ein kleines problem
 hauptsache es funktioniert !!!
danke !
_________________ In the beginning was the word.
And the word was content-type: text/plain.
|
|
Chatfix
      
Beiträge: 1583
Erhaltene Danke: 10
Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
|
Verfasst: Do 03.10.02 15:03
es scheint zu funktionieren. Danke. 
_________________ Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
|
|
FriFra
      
Beiträge: 557
Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
|
Verfasst: Do 03.10.02 15:40
Es gibt aber noch ein Problem.. Man muss noch alle Application Exceptions abfangen, denn bei einem JavaScript:window.close(); "verschwindet" das OLE Objekt und die Anwendung Crasht. Dieses Problem besteht natürlich auch beim Borland Beispiel.
|
|
toms
      
Beiträge: 1099
Erhaltene Danke: 2
|
Verfasst: Do 05.05.05 13:30
FriFra hat folgendes geschrieben: | | Es gibt aber noch ein Problem.. Man muss noch alle Application Exceptions abfangen, denn bei einem JavaScript:window.close(); "verschwindet" das OLE Objekt und die Anwendung Crasht. Dieses Problem besteht natürlich auch beim Borland Beispiel. |
Dafür gibt's ein OnWindowClosing Event. (evtl muss das ActiveX neu importiert werden, wenn das Ereignis nicht vorhanden ist)
Alternativ kann man WM_CLOSE für den Webbrowser abfangen (Siehe MINI WEBBROWSER DEMO)
|
|
|