I want to present HTML formatted text on a form and the only way to see the text in a correct manner is via a TWebLabel. This however does not make the text scollable.
When I import the text in the controls TWebHTMLSpan or TWebHTMLDiv the text via the HTML property the text is not wrapped. See picture below.
It should look like this!
With a TWebHTMLContainer, this should work fine:
Hm, I get a scrollbar now, but the text is still not wrapped! I will send the HTML in another reply.
Now I added another HTML container on a page and again to text wrapping.
Text is added to the container via the following event:
procedure TformMain.WebHttpRequestResponse(Sender: TObject; AResponse: string);
begin
WebHTMLContainerResponse.HTML.Add(AResponse);
end;
Is there a certain property I have to set?
When placing a TWebHTMLContainer directly on a form it works as expect. However when a copy the control on to a WebPageControlSheet the text is not wrapped.