Print Page | Close Window

Image background on tab control is no transparent

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23630
Printed Date: 23 December 2024 at 1:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Image background on tab control is no transparent
Posted By: fleg
Subject: Image background on tab control is no transparent
Date Posted: 19 April 2018 at 7:39am

Hi,

When using icons on tab control CTabCtrl, the icon is no longer transparent (tried using several styles).

with Toolkitpro 17.3


Now with Toolkitpro 18.3


Workaround is to replace the class CTabCtrl by CXTPTabCtrl,


but it should continue working without code changes.




Replies:
Posted By: rdhd
Date Posted: 24 May 2018 at 4:10pm
Perhaps this is a "first pixel" is the transparent color issue? We fight this all the time. I think CJ lets you set the transparent pixel color, though it might be a "global" setting. Find the CJ code that gets the first pixel and see if it changes for some reason.

We have been moving all our images to PNG to get away from a lot of these types of issues. Even before we moved to CJ we would have issues, especially in the days when bitmaps had color tables because they are not 32 bits. In some cases, we use WIC to convert images to PNG. But even then, you have to get the parameters to the calls correct.

But hey, at least the background isn't black (our most common historical issue).



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net