Update on THmlPort (Dave Baldwin HTML components ported to Lazarus):
Here is a screenshot that shows Dave's FrameDem example app on a MacBook using the Carbon widgetset (tested today with the new 0.9.28.2 release of Lazarus):
http://web.fastermac.net/~MacPgmr/Lazarus/FrameDem_MacBook.jpgTo test the FrameDem app yourself, install the htmlcomp.lpk package in Lazarus, then open and compile framedem.lpi in the demo_src folder.
Here are some things that don't work quite right that someone could investigate:
- On Intel machines (Mac and Windows), Lazarus has problems installing the package, either giving a file-not-found error or a checksum error. Usually compiling the package twice in succession will allow Lazarus to install the package. Note that Lazarus on a PowerPC Mac does not have these problems.
- On an Intel Mac, using the HTML design controls in the Lazarus designer gives an access violation error. Note that no error is generated on a PowerPC Mac.
- On Windows, displaying the FrameDem About box doesn't work right - dialog can't be closed. Note that no problem on Intel and PowerPC Mac.
- Some HTML features like special characters and display of graphic files do not yet work on Mac.
- I tested with GTK2 and the FrameDem app displays some HTML, then throws a run-time 202 (stack overflow) exception that crashes the app. Offhand this looks like something is looping in the GTK2 widgetset code that eventually exhausts the stack, since the same code works fine on Windows and Mac Carbon.
Please post here your experiences with this package. In my experience, some of the problems with a newly ported package ultimately prove to be gaps or bugs in the LCL, not anything wrong with the original or ported package code. To get these things fixed generally requires that you post a small app on the Bugtracker site (at left) that demonstrates the LCL or IDE problem. In other words, the better that the LCL and IDE work consistently across platforms, the better chance that a ported package will eventually work acceptably.
Thanks.
-Phil
http://web.fastermac.net/~MacPgmr/Lazarus/
(Grab the THtmlPort .zip file.)