Recent

Author Topic: THtmlViewer converted to lazarus  (Read 20169 times)

wotanica

  • Guest
THtmlViewer converted to lazarus
« on: September 20, 2010, 05:18:29 pm »
Not my work, but im not sure to many people know about this. THTMLViewer and TFrameviewer were native delphi html viewers -- it has now been converted to lazarus.

Check it out here:
http://code.google.com/p/thtmlviewer/source/detail?r=55

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: THtmlViewer converted to lazarus
« Reply #1 on: September 21, 2010, 10:24:32 am »
You mean this?

ZL

  • New Member
  • *
  • Posts: 16
Re: THtmlViewer converted to lazarus
« Reply #2 on: September 21, 2010, 11:49:34 am »
No, his mentioned link is different attempt to port this component.
But as I understand they only started porting to Lazarus.

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Re: THtmlViewer converted to lazarus
« Reply #3 on: September 21, 2010, 02:08:56 pm »
Great news but it is not cross platform :/ HTMLGlobals uses Windows unit. Are there plans to support linux?

wotanica

  • Guest
Re: THtmlViewer converted to lazarus
« Reply #4 on: September 21, 2010, 03:12:37 pm »
Great news but it is not cross platform :/ HTMLGlobals uses Windows unit. Are there plans to support linux?

Another port that works on all is mentioned above (http://wiki.lazarus.freepascal.org/THtmlPort).

To all: I should also mention that the link i posted contains a working link to a lazarus demo (see center list). But if the older port work - then all is well :)


wotanica

  • Guest
Re: THtmlViewer converted to lazarus
« Reply #5 on: September 21, 2010, 03:13:58 pm »
You mean this?

Ah great! Thanks for the heads up. I've been using THtmlviewer for years so i was happy to see it converted to lazarus. My mistake that it was already ported.

SunyD

  • Guest
Re: THtmlViewer converted to lazarus
« Reply #6 on: September 22, 2010, 04:36:51 pm »
Is anyone using this components?
I tested them they crashes often.

(I use Lazarus-Snapshot on WinXp machine)

wotanica

  • Guest
Re: THtmlViewer converted to lazarus
« Reply #7 on: September 22, 2010, 05:42:57 pm »
I couldnt even install it. My lazarus wanted a "static" something .inc file that it could not find..

SunyD

  • Guest
Re: THtmlViewer converted to lazarus
« Reply #8 on: September 22, 2010, 05:52:37 pm »
I couldnt even install it. My lazarus wanted a "static" something .inc file that it could not find..
Maybe it is in package-source directory. Open package options and write include directory.

You can use it without install. In this case you have to open package click "compile" than you must create components manually at Form.OnCreate, ie.

procedure Form.OnCreate(..);
begin
  ahtmlviewer:=THtmlViewer.Create(self);
  ahtmlviewer.align:=alclient;
  ahtmlviewer.parent:=self;
  //do something with ahtmlviewer yet
  ....
end;

I never install packages to test it.

wotanica

  • Guest
Re: THtmlViewer converted to lazarus
« Reply #9 on: September 22, 2010, 06:20:28 pm »
Yeah I know  :) (I've been coding in Delphi since the beginning), but during the compile there were so many warnings, even range check errors, that quite frankly I dont trust this in my application. Range errors are not always dangerous - but the authors can at least disable range checks where they know it will happen using {$R-/+} - that way the 3'rd party user feels a bit more confident about the product.

I have used THtmlviewer in Delphi for many, many years - and knows that it works very well. But so much has crashed in Lazarus, and I find so much sloppy code around that I cannot trust this port until I check it myself.

Some simple try/except and componentstate checking would save lazarus from being blamed for so much bad component coding. Shame that so people bother to do this.

I will test it next week when I have more time.
« Last Edit: September 22, 2010, 06:23:00 pm by wotanica »

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: THtmlViewer converted to lazarus
« Reply #10 on: September 27, 2010, 08:29:42 pm »
I can't tell if you're referring to the cross-platform port that's documented on the Lazarus CCR wiki or the Google project. If the former, please be more specific about the problems you're having (platform(s), Lazarus version, error msgs, etc.) or post bug reports with examples. If the latter, please contact the authors on the Google project. I'm not aware of that project and I don't believe anyone from it has ever contacted me about the cross-platform port I did.

Thanks.

-Phil

jdonth

  • Newbie
  • Posts: 5
Re: THtmlViewer converted to lazarus
« Reply #11 on: September 28, 2010, 05:57:28 pm »
Can anyone point me to a discussion group for the THTMLviewer component?

The MaxVertical property returns an integer value.

What does that integer value represent? Pixels, cm, mm, inches, etc.

Thanks,
~Joe

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: THtmlViewer converted to lazarus
« Reply #12 on: September 28, 2010, 06:20:38 pm »
Can anyone point me to a discussion group for the THTMLviewer component?

The MaxVertical property returns an integer value.

What does that integer value represent? Pixels, cm, mm, inches, etc.

Since it's used in expressions with Height, etc. I would assume that it's in pixels. And it looks to be the "height" of the HTML page since it's used for setting scroll bar positions.

Thanks.

-Phil

jdonth

  • Newbie
  • Posts: 5
Re: THtmlViewer converted to lazarus
« Reply #13 on: September 28, 2010, 06:53:39 pm »
Thank you very much!

 

TinyPortal © 2005-2018