Print Page | Close Window

XTP 12.0 SetIcon Problem

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=11174
Printed Date: 01 October 2024 at 2:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTP 12.0 SetIcon Problem
Posted By: terrym
Subject: XTP 12.0 SetIcon Problem
Date Posted: 23 June 2008 at 7:08pm

We have images (items) in a gallery control with alpha channel and they wont display in 16 bit color desktops if we use SetIcon as follows (hBitmap contains a 32 bit alpha image):

 

GetImageManager()->SetIcon( hBitmap, nID, CSize( m_nWidth, m_nHeight ), xtpImageNormal );

 

However all works fine if we have 32 bit color desktop

 

Any ideas please

 

Cheers

 

Terry



-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: Oleg
Date Posted: 24 June 2008 at 1:03am
Hi,
 
Problem can be in method you load it. Show code where you load this bitmap.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 24 June 2008 at 3:41am
We have tried even simple code, do you have an example of loading a png file to work with the above code, so load file then get hBitmap
 
Cheers


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 24 June 2008 at 9:26am
Hi,
 
Send this png, send code you use to load it, we will test on our end.
 
Thanks

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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