![]() |
16bit desktop color + alpha icons?? |
Post Reply
|
| Author | |||
Ark42
Senior Member
Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Quote Reply
Topic: 16bit desktop color + alpha icons??Posted: 21 June 2004 at 1:51pm |
||
|
None of the functions fail, but none of the icons display, they are all blank, if the desktop color is set to 16bit. It also spews out a lot of junk like: Failed -- Memory exception thrown.Failed -- Memory exception thrown.Failed -- Memory exception thrown.Failed -- Memory exception thrown.Failed -- Memory exception thrown.Failed -- Memory exception thrown.Failed -- Memory exception thrown.Failed -- Memory exception thrown.First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. Everything works fine in 32bit color mode though. I tried XTPImageManager()->SetIcons(IDR_ALPHA_ICONS, nIDMenuBarI cons, _countof(nIDMenuBarIcons), CSize(16, 16), xtpImageNormal) and also: CBitmap &bmAlphaIcons = *CBitmap::FromHandle((HBITMAP)::LoadImage(AfxGetApp()-> ;m_hInstance, MAKEINTRESOURCE(IDR_ALPHA_ICONS), IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION)); XTPImageManager()->SetIcons(bmAlphaIcons, nIDMenuBarIcons, _countof(nIDMenuBarIcons), CSize(16, 16), xtpImageNormal, XTPImageManager()->IsAlphaIconsSupported ()) but both get the same results. |
|||
![]() |
|||
Ark42
Senior Member
Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 June 2004 at 3:50pm |
||
|
The problem is all the dcSrc.CreateCompatibleDC(NULL); scattered in CXTPImageManagerIcon since NULL is creating a DC compatible with the current screen mode. My video card does not have a 24bit mode, but I suspect that even that would break alpha channel the same as 16bit mode. You probably have to actually be in a 32bit graphics color mode or it will break. Is this going to be fixed in the next version, it seems like a very major bug? Is there any date set yet for the next version? I have a program about ready to be released, but I can't yet since it won't work on anybody's system who is set to 16bit color. |
|||
![]() |
|||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 June 2004 at 10:54pm |
||
|
It was fixed. Write me and I'll send you fixed files. |
|||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||
![]() |
|||
Ark42
Senior Member
Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 June 2004 at 10:56pm |
||
|
Oh good, thanks! :)
|
|||
![]() |
|||
Ark42
Senior Member
Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 June 2004 at 1:20am |
||
|
I got this update (pays to be on the yearly support contract, doesn't it ) - it works nice. Thanks again! |
|||
![]() |
|||
ICBM
Groupie
Joined: 15 January 2004 Location: New Zealand Status: Offline Points: 57 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 June 2004 at 3:27am |
||
Hi I'd like this fix too. How do I email you ? Or... email it to me at: ian-at-bevantech.com (yes, I do have a yearly subscription !) |
|||
![]() |
|||
CSTL
Newbie
Joined: 29 June 2004 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2004 at 3:58am |
||
|
Hi, I just purchased the software and I have several questions. 1. Does the alpha icons work on other operating systems besides WinXP? 2. Does the video mode have to be set at 32 bits for the alpha icons to work? 3. Is there any documentation/samples on how to use CXTPImageManager? It seems to be missing from the help files. 4. Lastly, where can I get a fix for this? Thanks.
|
|||
![]() |
|||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2004 at 6:28am |
||
|
1. for all (for win95 and nt4 you must deliver msimg32.dll) 2. in last release was problem with win2000+16bit mode. the fix will be included in next product release. 3. open XTPImageManager.h and see members :) 4. Please wait next version. |
|||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||
![]() |
|||
ICBM
Groupie
Joined: 15 January 2004 Location: New Zealand Status: Offline Points: 57 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2004 at 6:01pm |
||
You must be new around here.... |
|||
![]() |
|||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2004 at 10:57pm |
||
|
|||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||
![]() |
|||
CSTL
Newbie
Joined: 29 June 2004 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2004 at 3:00am |
||
Yeah, I just started using this tookit. So how long does it take to get an update patch around here? |
|||
![]() |
|||
kstowell
Admin Group
Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 July 2004 at 11:59am |
||
|
Hello, If you contact support, they will provide you with a pre-release version: Regards, |
|||
![]() |
|||
ICBM
Groupie
Joined: 15 January 2004 Location: New Zealand Status: Offline Points: 57 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 July 2004 at 10:53pm |
||
Email support is pretty good. Typical response time is 1-2 days for an initial enquiry. Forum support is patchy at best. Documentation is, beyond a shadow of a doubt, utterly appalling and really completely inexcusable. I've heard they are re-writing it, but I don't know when we'll see the fruits of those labours. The example code is good, but it really takes some getting into.
|
|||
![]() |
|||
krulle
Newbie
Joined: 05 October 2004 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 November 2004 at 8:19am |
||
|
I still got the problem in 16-bit color depth and 32-bit bitmaps but I found a way to fix it. I hope it will help! CBitmap bmps ;bmps .Attach(LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_TOOLICONS), IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE | LR_CREATEDIBSECTION));XTPImageManager ()->SetIcons(bmps, GetCommandArray(), GetCommandArraySize(), CSize(16, 16), xtpImageNormal, TRUE); |
|||
![]() |
|||
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 |