Sign in Join
Wiki copytemporary

THtmlPort: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11### About
22
33THtmlPort is a Lazarus/Free Pascal version of Dave Baldwin's HTML Components, including THtmlViewer, TFrameViewer and TFrameBrowser. The ported code retains full compatibility with Delphi.
44
55The original unported source (version 9.45) is available from <http://www.pbear.com/>
66
77For a browser implemented using this component one can see [[fpbrowser]].
88
99### Screenshots
1010
11-<figure>
1211<img src="THtmlPort_Framedem_Carbon.jpg" title="FrameDem sample app using the Carbon widgetset" width="500" />
13-<figcaption>FrameDem sample app using the Carbon widgetset</figcaption>
14-</figure>
1512
16-<figure>
1713<img src="THtmlPort_Framedem_Win32.jpg" title="FrameDem sample app using the Win32 widgetset" width="500" />
18-<figcaption>FrameDem sample app using the Win32 widgetset</figcaption>
19-</figure>
2014
21-<figure>
2215<img src="THtmlPort_Framedem_GTK2.jpg" title="FrameDem sample app using the GTK2 widgetset" width="500" />
23-<figcaption>FrameDem sample app using the GTK2 widgetset</figcaption>
24-</figure>
2516
2617### Download
2718
2819You can download the ported source using Subversion:
2920
3021` svn co `[`https://svn.code.sf.net/p/lazarus-ccr/svn/components/thtmlport`](https://svn.code.sf.net/p/lazarus-ccr/svn/components/thtmlport)` [local dir]`
3122
3223New download:
3324
3425<https://github.com/BerndGabriel/HtmlViewer>
3526
3627### License
3728
3829The original Delphi code on which this port is based has been released by Dave Baldwin into the public domain. Additional code supplied with this port is released under the MPL 1.1 license.
3930
4031### Installation
4132
4233To install the HtmlComp package in Lazarus:
4334
4435- Choose Package \| Open package file, then select htmlcomp.lpk (in the package subfolder).
4536- Click Compile to compile the package.
4637- Click Compile a second time. A quirk in FPC \< 2.7.1 apparently make this extra compile necessary. (Q solution to this problem is to move htmlun2.pas before htmlgif1.pas in the package file list)
4738- Click Install to rebuild and relaunch Lazarus.
4839
4940To compile a sample application that uses the HtmlComp package:
5041
5142- Choose File \| Open, then select framedem.lpi or htmldemo.lpi (both in the demo_src subfolder).
5243- Choose Run \| Run to compile and run the sample app.
5344
5445### Status
5546
5647Win32 widgetset, GTK2 widgetset, Carbon widgetset: both FrameDem and HtmlDemo sample apps are working. Works good with Lazarus 1.0+.
5748
5849### Contact
5950
6051If you have fixes for any problems in the package, please contact Phil:
6152
6253` MacPgmr (at) fastermac (dot) net`
6354
6455### Known Issues
6556
6657#### Carbon widgetset
6758
68-- <s>In FrameDem app, title and subtitle at top (readme2.htm) display in sans serif font even though style in demo.css specifies Times New Roman, which is a Mac font.</s>
59+- In FrameDem app, title and subtitle at top (readme2.htm) display in sans serif font even though style in demo.css specifies Times New Roman, which is a Mac font.
6960
70-- <s>In FrameDem app, Wingding characters (sample3.htm) are not correct.</s>
61+- In FrameDem app, Wingding characters (sample3.htm) are not correct.
7162
72-- <s>In FrameDem app, image files that are inlined in text (sample3.htm) or tables (properties.htm) do not display. This is accompanied by many errors outputted to the Console app window by the Carbon widgetset code.</s> ==\> Note that raster operations are not implemented yet in Carbon widgetset, so some images display very rough looking.
63+- In FrameDem app, image files that are inlined in text (sample3.htm) or tables (properties.htm) do not display. This is accompanied by many errors outputted to the Console app window by the Carbon widgetset code. ==\> Note that raster operations are not implemented yet in Carbon widgetset, so some images display very rough looking.
7364
7465- Vertical scroll bar thumb does not move all the way to bottom of scroll bar when window is scrolled all the way down.
7566
76-- <s>In FrameDem app, shelling to whatsnew.htm does not work since can't start second copy of app and app is not MDI.</s>
67+- In FrameDem app, shelling to whatsnew.htm does not work since can't start second copy of app and app is not MDI.
7768
78-- In FrameDem app, clicking Preview in Print dialog <s>gives error that Copies is set to 0. Changing Copies to 1 allows Preview to proceed, but not much is shown. In HtmlDemo app, previewing works fairly well, although doesn't display quite as good as in app itself. With both apps, the second time Preview button is clicked, processing hangs</s> displays preview of all pages, but pages 2+ are blank.
69+- In FrameDem app, clicking Preview in Print dialog gives error that Copies is set to 0. Changing Copies to 1 allows Preview to proceed, but not much is shown. In HtmlDemo app, previewing works fairly well, although doesn't display quite as good as in app itself. With both apps, the second time Preview button is clicked, processing hangs displays preview of all pages, but pages 2+ are blank.
7970
8071#### Win32 widgetset
8172
82-- <s>HtmlDemo sample app throws exception at startup / loads but does not display HTML files.</s>
73+- HtmlDemo sample app throws exception at startup / loads but does not display HTML files.
8374
84-- <s>FrameDem sample app sometimes fails to load samples3.htm when HTML Samples link is clicked; other times it loads fine.</s>
75+- FrameDem sample app sometimes fails to load samples3.htm when HTML Samples link is clicked; other times it loads fine.
8576
86-- <s>In FrameDem app, shelling to whatsnew.htm starts another copy of app okay, but nothing displayed. Same issue with starting FrameDem with a file other than demo.htm specified on command line.</s>
77+- In FrameDem app, shelling to whatsnew.htm starts another copy of app okay, but nothing displayed. Same issue with starting FrameDem with a file other than demo.htm specified on command line.
8778
8879- In Lazarus form designer, dropping THtmlViewer on form displays a scroll bar in the upper left corner of the control. Changing THtmlViewer's BorderStyle, for example, hides the scroll bar. Looks like a form designer bug.
8980
9081#### GTK2 widgetset
9182
92-- <s>HtmlDemo sample app won't load anything / loads but does not display HTML files.</s>
83+- HtmlDemo sample app won't load anything / loads but does not display HTML files.
9384
94-- <s>FrameDem sample app throws exception in several places (for example, clicking Stylesheet Support link). In debugger, enter "break gdk_x_error" and run backtrace following exception to see where error is occurring.</s>
85+- FrameDem sample app throws exception in several places (for example, clicking Stylesheet Support link). In debugger, enter "break gdk_x_error" and run backtrace following exception to see where error is occurring.
9586
96-- Font issues in FrameDem app. This may be due to inability to match font against Windows font that is specified in .css files. For example, <s>no underlining or strikethrough,</s> text in \<PRE\> tag is not indented properly, <s>text looks too big in About box,</s> etc.
87+- Font issues in FrameDem app. This may be due to inability to match font against Windows font that is specified in .css files. For example, no underlining or strikethrough, text in \<PRE\> tag is not indented properly, text looks too big in About box, etc.
9788
9889- In FrameDem app, first two Wingding characters (sample3.htm) are not correct (probably a font matching issue).
9990
100-- <s>In FrameDem app, File \| Printer Setup throws exception in /printers/unix/cupslcl.pas if selected before clicking in one of the frames. Clicking in a frame enables File \| Print and once Printing dialog has been displayed, File \| Printer Setup is okay.</s>
91+- In FrameDem app, File \| Printer Setup throws exception in /printers/unix/cupslcl.pas if selected before clicking in one of the frames. Clicking in a frame enables File \| Print and once Printing dialog has been displayed, File \| Printer Setup is okay.
10192
102-- <s>In both apps' Fonts dialog (Options \| Default Font/Colors), the Font Name list will be empty if HasX was not defined when GTK2 was compiled (default on OS X; without HasX, EnumFontFamiliesEx is not implemented, meaning Screen.Fonts is empty list). But even if the list does contain fonts (HasX defined), clicking one blanks the example HTML (LoadAgain failing?).</s>
93+- In both apps' Fonts dialog (Options \| Default Font/Colors), the Font Name list will be empty if HasX was not defined when GTK2 was compiled (default on OS X; without HasX, EnumFontFamiliesEx is not implemented, meaning Screen.Fonts is empty list). But even if the list does contain fonts (HasX defined), clicking one blanks the example HTML (LoadAgain failing?).
10394
104-- <s>In FrameDem app, shelling to whatsnew.htm starts another copy of app okay and loads file, but no vertical scroll bar is displayed, although clicking on invisible scroll bar does scroll the window.</s>
95+- In FrameDem app, shelling to whatsnew.htm starts another copy of app okay and loads file, but no vertical scroll bar is displayed, although clicking on invisible scroll bar does scroll the window.
10596
10697#### All widgetsets
10798
10899- In the sample apps' Fonts dialog (Options \| Default Font/Colors), the Font Color and Link Color areas are blank since a TColorGrid was used in the original Delphi apps. TColorGrid is not an LCL control and has been removed from the .lfm files.
109100
110101- Preview has been disabled since this depends on TMetaFile, which is not part of LCL.
111102
112-- Copying to clipboard <s>does not yet work</s> is basically functional but only on first copy (note also that GTK2 apparently does not support text/html clipboard format).
103+- Copying to clipboard does not yet work is basically functional but only on first copy (note also that GTK2 apparently does not support text/html clipboard format).
113104
114-- <s>Does not yet support 64-bit.</s> ==\> Package should now compile, install, and compile and run sample apps okay with 64-bit compilers on Win64 and Linux64 (CPU64).
105+- Does not yet support 64-bit. ==\> Package should now compile, install, and compile and run sample apps okay with 64-bit compilers on Win64 and Linux64 (CPU64).
115106
116107- No support for PNG image files (except on Windows - current support is still written for a Windows DLL).
117108
118109### See Also
119110
120111- [[Webbrowser]]
121112
122113---
123114*From the Free Pascal wiki, page "THtmlPort", as it stood on 2018-01-25 after a change by Alextp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
124115Category: Components
125116Category: Lazarus-CCR

Back to history