Jump to content
alogrep

Use old glyph with tpngobject in 10.4?

Recommended Posts

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

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

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?

s1.jpg

Share this post


Link to post

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×