Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Alpha Bitmaps do not display as disabled
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Alpha Bitmaps do not display as disabled

 Post Reply Post Reply
Author
Message
csturg View Drop Down
Newbie
Newbie


Joined: 13 July 2005
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote csturg Quote  Post ReplyReply Direct Link To This Post Topic: Alpha Bitmaps do not display as disabled
    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

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
csturg View Drop Down
Newbie
Newbie


Joined: 13 July 2005
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote csturg Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2006 at 10:28am

I attached the bitmap and a note in issue tracking.

Thanks

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
csturg View Drop Down
Newbie
Newbie


Joined: 13 July 2005
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote csturg Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.