![]() |
Alpha Bitmaps do not display as disabled |
Post Reply
|
| Author | |
csturg
Newbie
Joined: 13 July 2005 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: Alpha Bitmaps do not display as disabledPosted: 13 January 2006 at 6:54pm |
|
I have Alpha (32-bit) images on a CXTPToolbar in a dialog box. They display properly when enabled, but when their buttons are disabled, the images are not grayed. The images still appear enabled. I noticed that reducing the images back to 24-bit (without Alpha) solved the problem, but I would like to use the full Alpha images if possible. Any ideas? I am using LoadToolbar as follows to get the images via the resource ID: MyToolBar.LoadToolBar(IDR_MY_TOOLBAR, TRUE); Thanks
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 January 2006 at 8:52am |
|
Hello, Attach your image here/in issue track to check. I sure problem in it. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
csturg
Newbie
Joined: 13 July 2005 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 January 2006 at 10:28am |
|
I attached the bitmap and a note in issue tracking. Thanks
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 January 2006 at 12:25am |
|
Hmm.. I have no problem with your bitmap/disabled icons. Guess problem that you have quite old version (9.70?) I can suggest 1. Upgrade your sources or 2. Manually create disabled icons bitmap and load it using XTPImageManager()->SetIcons(..., xtpImageDisabled); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
csturg
Newbie
Joined: 13 July 2005 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 January 2006 at 12:57pm |
|
Thanks. I just tried upgrading to 9.81 and received the following link error: fatal error LNK1104: cannot open file 'CommandBars981vc71D.lib' In the install, I selected a commandbars static library that is linked to MFC as a DLL. The two files it generated for me in \vc71\lib are CommandBars981vc71DSD.lib and CommandBars981vc71DS.lib. A 'CommandBars981vc71D.lib' was not created. Any ideas? Thanks, Craig |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 January 2006 at 2:06pm |
|
Hello, It try to use 'CommandBars981vc71D.dll but you didn't build it in deploy wizard. To use CommandBars981vc71DSD.lib instead CommandBars981vc71D.lib you must add #define _XTP_STATICLINK in stdafx.h before you included commandbars. also don't forget to add resources to rc2 file.
|
|
|
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 |