Giter VIP home page Giter VIP logo

Comments (8)

BerndGabriel avatar BerndGabriel commented on May 29, 2024

Ralph,

thanks for this suggestion.

Please get the latest version from branch https://github.com/BerndGabriel/HtmlViewer/tree/HtmlViewer-11.4-to-11.5 . I added support for all kinds of images GDIPlus handles, which includes ICO.

Bernd

from htmlviewer.

rbmuc avatar rbmuc commented on May 29, 2024

Hi Bernd,

thank you for quick reply and the new function LoadIco: ThtImage; . To compile it
with Lazarus i made changes in sample and the package source ending up with
this runtime error
ThtGpImage.Destroy : GDI Error 2
In File 'C:\lazarus\components\HtmlViewe\source\GDIPL2A.pas' line 306

Could it be a Lazarus version problem ?
There are 2 versions 1.2.0 with FPC 2.6.2 and 1.2.2 with FPC 2.6.4.
Changes, envi discription and runtime error are in https://www.bergertime.eu/download/myRoot.zip

rgds
Ralph

from htmlviewer.

BerndGabriel avatar BerndGabriel commented on May 29, 2024

Hi Ralph,

I'm using latest stable Lazarus 1.2.2.

I cannot open any file with your FrameDemLaz.exe.
After compiling it with my Lazarus it works fine. No GDI Errors.

Error 2 is "invalid parameter". It would be very helpful if you could post or e-mail your test-html-document.

from htmlviewer.

rbmuc avatar rbmuc commented on May 29, 2024

Hi Bernd,

the html page is at https://www.bergertime.eu/download/test.zip
To get the error message you need to run framedemo.exe from the Laz Debugger.

I'll port my app to Lazarus 1.2.2 within the next 2 weeks. Guess this will fix my error.

rgds
Ralph

from htmlviewer.

BerndGabriel avatar BerndGabriel commented on May 29, 2024

Hi Ralph,

thanks for the test file.
It is shown fine with Lazarus 1.1 and Lazarus 1.2.2 x64 executable on Windows 7 and 8.1.
Should I test a 32-bit Lazarus as your FrameDemLaz.exe is compiled for Win32?

I also committed a fix that does not abort loading documents when an image could not be loaded. Getting an exception in the debugger is intended if loading an image has failed.

Bernd

from htmlviewer.

rbmuc avatar rbmuc commented on May 29, 2024

Hi Bernd,

thank's for helping. You're right ist Win32.
If you have already a 32 bit Lazarus installed it would be great.
Otherwise i can do till end of week with a brand new Lazarus 1.2.2.

Ralph

from htmlviewer.

BerndGabriel avatar BerndGabriel commented on May 29, 2024

FrameDemLaz.exe compiled with Lazarus 1.0.8 win32 showed Test.htm on Windows 7 x64 correctly.

from htmlviewer.

BerndGabriel avatar BerndGabriel commented on May 29, 2024

Hi Ralph,

did you succeed in loading icons in the meantime?

Bernd

P.S.: happy new year.

from htmlviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.