Page 1 of 1

Critical Issue with latest 2010 update and PngComponents

Posted: Sat Oct 16, 2010 10:43 am
by 10046032
Hello,

After I updated my 2010 evaluation for Delphi XE to the latest update I cannot assign a png image to any of the PngComponents from the designer (I get an invalid graphic format error). If I do not load TChart Components everything works ok... Can anybody please give me some hints on how to make this work as a lot of errors suddenly appeared with this update and this is most annoying :(

Regards

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Mon Oct 18, 2010 8:42 am
by narcis
Hi johnnix,

It could be related to the fact that in this release PNGImage unit was renamed to TeePNGImage to avoid name conflicts with existing PNGImage unit as discussed here. Do you have those packages enabled? Have you changed unit references in your project if necessary?

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Mon Oct 18, 2010 8:51 am
by 10046032
Hello Narcis,

Thank you for your reply. Ok, I had installed PngComponents fro Delphi 2010 and there was no issue with the evaluation version of TeeChart 2010. The error appeared after I installed the latest official release. I did not change any unit references so can you please help me on what I am looking for? Which packages are you referring too?

Regards

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Mon Oct 18, 2010 9:08 am
by narcis
Hi johnnix,

Do you have TeeMaker package enabled at Project -> Options -> Packages? TeeMaker is the package that includes TeePNGImage.

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Mon Oct 18, 2010 9:19 am
by 10046032
Hello,

Yes, TeeMaker is enabled. What else could be wrong? :(

Regards

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Mon Oct 18, 2010 9:26 am
by 10046032
Hello Narcis,

If I disable TeeMaker package and create a new VCL project and add aTPngBtiBtn, then I can add a png image to a . If I then add a TChart component I can no longer add a png image (Get that invalid format error)

Regards

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Mon Oct 18, 2010 12:01 pm
by 10046032
Hello Narcis,

Can you reproduce this error?

Regards

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Mon Oct 18, 2010 1:06 pm
by narcis
Hi johnnix,

Does this only occurs with PNGImage components? I can set a PNG file as a TChart BackImage here.

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Tue Oct 19, 2010 5:11 am
by 10046032
Hello Narcis,

The problem is not with TChart but with TPngBitBtn! I cannot assign a png to TPngBitBtn any more so I was hoping you could give me some hint (remember it worked ok with the evaluation version)

Regards

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Tue Oct 19, 2010 5:22 am
by 10046032
Hello Narcis,

Ok, I found a solution! In PngFunctions use:

Code: Select all

initialization
  TPicture.RegisterFileFormat('PNG', 'Portable Network Graphics', TPNGObject);
Regards

Re: Critical Issue with latest 2010 update and PngComponents

Posted: Tue Oct 19, 2010 7:23 am
by narcis
Hello johnnix,

Thank you very much for your feedback, I'm glad to hear you found a solution to the issue.