Open GoogleCodeExporter opened 9 years ago
Hi Alan,
I'm glad to hear that you like HtmlViewer.
which compiler/library do you use?
Anyway, none of us uses a Mac and thus we cannot do it.
Did you try Lazarus? Since 1.1 at least on Windows it supports HtmlViewer
rather good.
Maybe you want to give it a try (and report your success here)?
Thanks
OrphanCat
Original comment by OrphanCat
on 3 Jul 2012 at 4:52
Am running it on Lazarus Windows the only problem being that it hangs the
debugger but will pursue that. Yes I do have a Mac and will try to port the
code and advise. May take some time as I am a newby to Lazarus. Not sure if I
will succeed but will give it a go.
Original comment by alanchat...@gmail.com
on 3 Jul 2012 at 11:51
Investigated the debugger hang and have found as follows:
LoadFromFile works fine. Load From String works when no breakpoints set, unless
the string is short.
If I use Load From String with '<html><body>abcd</body></html>' as the string
it works fine with breakpoints set. Viewing debug output shows as expected and
F9, F8 etc keys work as required.
If I use LoadFromString with a full web page, which I retrieve from a database,
it reaches the breakpoint but the debug output display keeps looping forever
and the keyboard will not respond to F9, F8 etc. The only way to stop this is
to reset the debugger and force quit Lazarus.
If I remove all of the breakpoints the whole process runs correctly using the
LoadFromString.
Seems to me this may be an FPC/debugger issue not HTMLViewer. May change to use
LoadFromStream which I believe will work but wonder if you could check to see
if you get the same behaviour.
I am running Win7, 64bit with the current FPC and Lazarus download.
Original comment by alanchat...@gmail.com
on 4 Jul 2012 at 11:49
Started a Mac portinng and have managed to get the package to compile and
install, after making some changes, however it only displays the text. Appears
it is not processing the HTML tags in the parsing code but am not able to debug
because of the debugger in Mac Lazarus crashing so often. Have given this
several days effort for little result all because it is very difficult, if not
almost impossible to get any debugging output.
Understand 2.7 FPC/Lazarus is on the horizon however that will probably not
release for Mac for quite some time to come so will leave this project until
that eventuates.
Original comment by alanchat...@gmail.com
on 6 Jul 2012 at 10:03
Original issue reported on code.google.com by
alanchat...@gmail.com
on 3 Jul 2012 at 8:48