norgepaul / TChromeTabs

Comprehensive Delphi implementation of Chrome's tab system
Other
215 stars 78 forks source link

TChromeTabs on Delphi 7: bad rendering of images in Tabs #97

Closed mirandaelfi closed 9 months ago

mirandaelfi commented 2 years ago

I am using TChromeTabs by Paul Spencer Thornton on Delphi 7 and I have a problem that I cannot solve: when I want to display images in TChromeTab, they are displayed with poor graphics, with few colors.

1

However, the images are displayed correctly in the Object Inspector,

2

and if I open the TImageList component, the images are also displayed correctly here, even when the application is running.

3

Notice that the first time I opened the TImageList editor this hint message appeared and I answered Yes.

4

If in the same dialog box instead I answer No, the images appear like this (on a black background) .

5

The project is ChromeTabsDemoD7.dpr downloaded from the developer's site.

I couldn't find a solution to this problem anywhere online, and I don't know how to fix it, can anyone help me?

I did an alternative test with a new application, with a TPageControl and a TImageList: loading the TImageList with images and setting the ImageIndex property of a TTabSheet, the image appears drawn correctly on the tab.

Note: Delphi 7 with CnPack.

witchole commented 2 years ago

Could this be related to issue #10?

witchole commented 2 years ago

Could this be related to issue #10?

Yes; the problem is solved by using the pngImage library provided with JVCL. You need to enable the USE_PNGIMAGE define in ChromeTabsUtils.pas

Capture

JavierusTk commented 9 months ago

You gave a solution, so this issue should be closed