BerndGabriel / HtmlViewer

The well-known Delphi/Lazarus HtmlViewer/FrameViewer
Other
396 stars 147 forks source link

Is this project for Windows only? #81

Closed vonHabsi closed 7 years ago

vonHabsi commented 9 years ago

Is this project for Windows only?

My compilation is stopping on InitFlatSB which makes a call to handle:=GetModuleHandle('comctrl32.dll');?

BerndGabriel commented 9 years ago

Hi, some years ago someone announced to start porting to OS/X (https://code.google.com/p/thtmlviewer/issues/detail?id=167). But there are no results (yet). I'm not aware of any other tries.

Thus HtmlViewer is still a "Windows only" project. :(

BerndGabriel commented 8 years ago

Branch "HtmlViewer-11.6-to-11.7" now compiles and runs a basic HtmlViewer for Linux/GTK2!

sunsell commented 8 years ago

handle:=GetModuleHandle('comctrl32.dll'); ???

BerndGabriel commented 8 years ago

That's not for Linux, of course! Hm, the non-windows settings in htmlcons.inc got lost. Commit e68efc889578c7cbc36651d4afd6f56d73cfdaef restores them.

sunsell commented 8 years ago

I add a THtmlViewer on a form. Lazarus hangs.

HtmlViewer-11.6-to-11.7, current. i386 ubuntu 14.04 with updates fpc 2.6.4 Lazarus 1.4.2 http://michael-ep3.physik.uni-halle.de/Lazarus/releases/Lazarus%20Linux%20i386%20DEB/Lazarus%201.4.2/

ak545 commented 8 years ago

Hello, BerndGabriel!


Fedora 23 Mate x86_64 fpc-3.0.0-1.x86_64.rpm fpc-src-3.0.0-151202.x86_64.rpm lazarus-1.6-0.x86_64.rpm HtmlViewer-11.6-to-11.7, current. Compiled and install successful. But, when I added a THtmlViewer on a TForm Lazarus is hangs (Error ready...).


Windows 10 64-bit + lazarus-1.6.0-fpc-3.0.0-win64 all work correct.


sunsell commented 8 years ago

Thank you. Now it works.

ak545 commented 8 years ago

Fedora 23 Mate x86_64 fpc-3.0.0-1.x86_64.rpm fpc-src-3.0.0-151202.x86_64.rpm lazarus-1.6-0.x86_64.rpm HtmlViewer-11.6-to-11.7, current.

Yes, now it's work!

BerndGabriel, thanks a lot!

sunsell commented 8 years ago

Other error.

Compile Project, Target: project1: Exit code 1, Errors: 1, Hints: 1 unit1.pas(18,32) Error: Duplicate identifier "Color" unit1.pas(18,32) Hint: Identifier already defined in unit FORMS at line 745

type

{ TForm1 }

TForm1 = class(TForm) HtmlViewer1: THtmlViewer; procedure HtmlViewer1BitmapRequest(Sender: TObject; const SRC: ThtString; var Bitmap: TBitmap; var Color: TColor);

BerndGabriel commented 8 years ago

Please use {$mode delphi} instead of {$mode objfpc}.

sunsell commented 8 years ago

Thanks a lot!