Comments (8)
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.
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.
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.
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.
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.
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.
FrameDemLaz.exe compiled with Lazarus 1.0.8 win32 showed Test.htm on Windows 7 x64 correctly.
from htmlviewer.
Hi Ralph,
did you succeed in loading icons in the meantime?
Bernd
P.S.: happy new year.
from htmlviewer.
Related Issues (20)
- THtmlViewer.LoadHTML hangs when loading an html with css code that includes a media query on color scheme HOT 2
- Width property is not parsed inside CSS body HOT 2
- Master no longer builds on Delphi XE or earlier HOT 1
- Support for Rendering SVG Graphics HOT 1
- Cannot build package missing Lcl...pas units HOT 2
- Dark Mode HOT 1
- Is font embedding supported? HOT 1
- MHT-Files supported by HTMLViewer? HOT 2
- Images can not be imported into a richedit HOT 4
- OS 12.6 Monterey: Error: Identifier not found ["FontSerif", "FontMono", "FontSans", "FontCursive", "FontHelvet"]
- PrintPreview is showing images not as it should (black box), as well as the font is different HOT 6
- 'FullDisplaySize' adds Margins on Top and Bottom (2*14px) HOT 1
- body or css background image HOT 2
- CSS Property "white-space:nowrap" does not work in THtmlViewer
- Barcode support
- Transparent in icon display bug? HOT 1
- How to use this package HOT 2
- How can i print page on Linux in Lazarus? HOT 3
- Control not working in Lazarus 3.99 on Linux. HOT 2
- How to install the components HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmlviewer.