Print Page | Close Window

Alpha Bitmaps do not display as disabled

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3511
Printed Date: 05 July 2024 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Alpha Bitmaps do not display as disabled
Posted By: csturg
Subject: Alpha Bitmaps do not display as disabled
Date Posted: 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

 




Replies:
Posted By: Oleg
Date 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


Posted By: csturg
Date Posted: 14 January 2006 at 10:28am

I attached the bitmap and a note in issue tracking.

Thanks

 



Posted By: Oleg
Date 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


Posted By: csturg
Date 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



Posted By: Oleg
Date 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



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