Reported by Wayne Sherman; checked by Jordan Russell
To reproduce the behaviour:
- 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>
- Open this HTML file into IE and try out the TEXTAREA control.
It accepts carriage returns properly.
- Now let's try the same HTML in Delphi using TWebBrowser.
- New Application
- Drop TWebBrowser from Internet tab
- Make a FormCreate event as follows:
procedure TForm1.FormCreate(Sender: TObject);
begin
WebBrowser1.Navigate('C:\TestForm.htm');
end;
- Save and run.
- 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 |