Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: 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
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: 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 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: 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
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: 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 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: 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 :wink:

_________________
In the beginning was the word.
And the word was content-type: text/plain.
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: 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 :mrgreen: 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. :nixweiss: 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. :wink:

_________________
Viele Grüße
Jakob
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: 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
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
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
BeitragVerfasst: Mi 02.10.02 15:39 
genau das problem hab ich auch.. hab das auch schon gepostet, aber es kamen keine antworten :cry:

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: 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
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
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
BeitragVerfasst: Do 03.10.02 14:51 
:idea: Ich hatte das Problem auch! Aber es lässt sich abstellen:

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:
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 
    { Private declarations } 
    FOleInPlaceActiveObject: IOleInPlaceActiveObject; 
    procedure MsgHandler(var Msg: TMsg; var Handled: Boolean); 
  public 
    { Public declarations } 
  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 
  { exit if we don't get back a webbrowser object } 
  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 
        //nothing - do not pass on Backspace, Left or Right arrows 
      else 
        FOleInPlaceActiveObject.TranslateAccelerator(Msg); 
  end; 
end;


Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 03.10.02 14:59 
ufff..... das ist aber zeimlich aufwändig für so ein kleines problem :wink:

:arrow: hauptsache es funktioniert !!!

danke !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
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
BeitragVerfasst: Do 03.10.02 15:03 
es scheint zu funktionieren. Danke. :D

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
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
BeitragVerfasst: 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
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Do 05.05.05 13:30 
user profile iconFriFra 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 Suche in: Delphi-Forum, Delphi-Library MINI WEBBROWSER DEMO)