Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this project for Windows only? #81

Closed
vonHabsi opened this issue Mar 24, 2015 · 11 comments
Closed

Is this project for Windows only? #81

vonHabsi opened this issue Mar 24, 2015 · 11 comments

Comments

@vonHabsi
Copy link

Is this project for Windows only?

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

@BerndGabriel
Copy link
Owner

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
Copy link
Owner

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

@sunsell
Copy link

sunsell commented Mar 30, 2016

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

@BerndGabriel
Copy link
Owner

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

@sunsell
Copy link

sunsell commented Mar 31, 2016

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
Copy link

ak545 commented Apr 2, 2016

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.


BerndGabriel added a commit that referenced this issue Apr 9, 2016
- Fixed: Lazarus hangs when dropping a THtmlViewer to a form
  There are 2 types of THandle (32 and 64 bits).
@sunsell
Copy link

sunsell commented Apr 13, 2016

Thank you. Now it works.

@ak545
Copy link

ak545 commented Apr 13, 2016

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
Copy link

sunsell commented Apr 15, 2016

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
Copy link
Owner

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

@sunsell
Copy link

sunsell commented Apr 19, 2016

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants