alogrep 0 Posted September 3, 2021 Hi I have some legacy units with lots of glyph loaded with tpngoject. In my old Delphi the images are show well. In 10.4, they are simply ignored, not shown. If I inspect the DFM loaded in 10.4 the DATA section of the glyph is not present. Is there any way to make those units in 10.4 easier (or faster) than reload the images 1 by 1? ( I would also like to preserve the original unit to be used with the older version). Thanks. Share this post Link to post
Uwe Raabe 1860 Posted September 3, 2021 Install PngComponents - it registers the old format per default. Share this post Link to post
alogrep 0 Posted September 4, 2021 Than you Uwe. How do I install it? I dowloaded PackagesSydney and trying to build PngComponentsDesign I get a list of errores Tpngimagelist .... not found. If I try to build PngComponents I get the error "...source\PngSpeedButton not found" not found. Share this post Link to post
Uwe Raabe 1860 Posted September 4, 2021 You should download all files from the repository. Share this post Link to post
alogrep 0 Posted September 4, 2021 Thanks Uwe. But still cannot have the glyph png image shown. I built and installed ok PngComponentsDesign.dpk (it shows in install packages. see attached image). I built PngComponents.dpk. But a form with components using a png image does not show the image (in my older delphi they show ok). Any hint as to what else should I do? Share this post Link to post
alogrep 0 Posted September 4, 2021 Sorry, it workds fine!. I think the error was that I had put in the library pngcomponents\PngObject\ (the newly installed package). I removed it and all is ok. Thank you very much Share this post Link to post
Uwe Raabe 1860 Posted September 4, 2021 Indeed, the PngObject contains the files needed for versions below Delphi 2009, while since then these units are part of the Delphi standard libraries and can must be omitted. Share this post Link to post
alogrep 0 Posted October 23, 2021 Hello Uwe. I am in trouble again. I left my project for a couple of months, and now again have the same problem: The design components show in insstalled packages, but the unit with tpngobject images do now show the image. I uninstalled the package., I re-installed PngComponentsDesign.dpk from the sydney folder. I also re-named pngcomponents\pngobject to make sure it does not interfere in any way. But the (content of the) images are not not shown. Share this post Link to post