XTP 12.0 SetIcon Problem |
Post Reply |
Author | |
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Problem can be in method you load it. Show code where you load this bitmap.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Send this png, send code you use to load it, we will test on our end.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |