The Delphi Bug List

Entry No.
661
VCL - Internet - SHDocVw - TWebBrowser
TWebBrowser prevents proper behavior of TEXTAREA controls in HTML pages. The TEXTAREA control does not see carriage return key presses.
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 4.03 5.0 5.01 6.0 6.01 6.02 Kylix 1.0
N/AN/AN/AN/AN/AN/AN/AN/AN/AUnknownExistsExistsExistsExistsN/A
Description
Reported by Wayne Sherman; checked by Jordan Russell
To reproduce the behaviour:
  1. Create an HTML file in the C:\ directory called 'TestForm.htm'. It should have the following contents:
    <HTML>
      <TEXTAREA ROWS=10 COLS=40></TEXTAREA>
    </HTML>
  2. Open this HTML file into IE and try out the TEXTAREA control. It accepts carriage returns properly.
  3. Now let's try the same HTML in Delphi using TWebBrowser.
  4. New Application
  5. Drop TWebBrowser from Internet tab
  6. Make a FormCreate event as follows:
    procedure TForm1.FormCreate(Sender: TObject);
    begin
      WebBrowser1.Navigate('C:\TestForm.htm');
    end;
  7. Save and run.
  8. Try out the TEXTAREA control in the WebBrowser windows of the Delphi app. It does not accept carriage returns.

This documents a similar problem, but not exactly the same.
http://community.borland.com/article/0,1410,6302,00.html

Latest update of this entry: 2002-03-18

Post a comment on this bug


Index page
Delphi Bug List home page
The Delphi Bug Lists are presently maintained by Jordan Russell, who has taken over this task from Reinier Sterkenburg since August 2000.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.