Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-07

Which HTML render component better?

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexey

Which of these two: THtmlPort, TurboPower, is better rendering complex HTML files, with CSS included, etc?

Seems THtmlPort wiki page is big, so it is better/bigger maybe? TurboPower is not ok at rendeding my homepage w/o JS (cannot test 2nd yet).

Regards, Alexey

Reply by email

Werner Pamler
to Alexey
Alexey wrote 6 lines
Which of these two: THtmlPort, TurboPower, is better rendering complex HTML files, with CSS included, etc? Seems THtmlPort wiki page is big, so it is better/bigger maybe? TurboPower is not ok at rendeding my homepage w/o JS (cannot test 2nd yet).

In my Delphi times I had a few projects which used the original THtmlPort component (THtmlViewer), and this worked great. Later, I tried the Lazarus version in ccr, but it did not even compile, and it still does not today. There is a newer version on BerndGabriel's gitbub (https://github.com/BerndGabriel/HtmlViewer), it contains a Lazarus package, but it does not compile either (I did not investigate how difficult it is to fix this). The old Delphi version ignored JavaScript, I don't know whether this has changed in Bernd Garbriel's version, but I don't think so.

Then I switched to the TurboPower Ipro HTMLPanel. It was very buggy then, I could improved it to some degree, but it still has lots of issues (look at our LHelp viewer). It has some css support, but I would not expect too much. Certainly no support of JavaScript. It is good for small pages, such as for some more interesting renderuing of the acknowledgements on the About page of an application.

Reply by email

Martok
to Alexey: Which of these two: THtmlPort, TurboPower, is better rendering complex HTML files, with…
Alexey wrote
Which of these two: THtmlPort, TurboPower, is better rendering complex HTML files, with CSS included, etc?

Those are the two main native HTML renderers, but both have their problems. My main complaint would be that neither uses the DOM internally, which makes extensions a bit difficult and DHTML almost impossible.

Depending on your platform target, Microsofts IE COMControl is actually pretty good. Or use the CEF, but that bloats your application by about 35MB...

AFAIK, we don't have anything as small and simple as a QWebView in Qt. I have a fairly complete concept for a completely CSS-based renderer flying around. "Only" a matter of actually writing it.

Reply by email