Mira Ortensia Falzari
Mira Ortensia Falzari

Reputation: 39

TChromeTabs on Delphi 7: bad rendering of images in Tabs

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

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

Notice that the first time I opened the TImageList editor this hint message appeared and I answered Yes. If in the same dialog box instead I answer No, the images appear like this (on a black background) .

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 (I cannot post the sample screen due to forum limitations for newly registered users).

Note: Delphi 7 with CnPack.

Upvotes: 1

Views: 173

Answers (1)

dougwoodrow
dougwoodrow

Reputation: 1178

Issue number 10 on the ChromeTabs repository holds the answer:

  1. Get an external copy of pngImage

(the version provided with the JVCL library seems to work fine)

  1. Enable the following define in ChromeTabUtils:

    {$DEFINE USE_PNGIMAGE}

Upvotes: 2

Related Questions