Reputation: 39
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
Reputation: 1178
Issue number 10 on the ChromeTabs repository holds the answer:
(the version provided with the JVCL library seems to work fine)
Enable the following define in ChromeTabUtils:
{$DEFINE USE_PNGIMAGE}
Upvotes: 2