Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread How to output HTML?
Mon, May 8 2023 1:55 PMPermanent Link

marcusf

I'm writing a chat application using sockets and it's going well.

I can't figure out how to output raw HTML though. I'm doing the processing on a FreePascal server to generate HTML for each message but how do I output it on the client?
Mon, May 8 2023 2:33 PMPermanent Link

marcusf

marcusf wrote:

I'm writing a chat application using sockets and it's going well.

I can't figure out how to output raw HTML though. I'm doing the processing on a FreePascal server to generate HTML for each message but how do I output it on the client?


And not long after I posted I figured it out.

TBrowser, and set the DocumentText to the HTML seems to work, now I just need to get some CSS on the page
Tue, May 9 2023 4:29 PMPermanent Link

erickengelke

Avatar

marcusf wrote:

> And not long after I posted I figured it out.
>TBrowser, and set the DocumentText to the HTML seems to work, now I just need to get some CSS on the page

Another option is using THTMLLabel and set the content.   It might work better for displaying paragraphs of content at a time.

If you know your html, under the hood, THTMLLabel is a DIV and TBrowser is an IFRAME.  

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Image