Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPToolBar > 16-color?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPToolBar > 16-color?

 Post Reply Post Reply
Author
Message
Santos L Helper View Drop Down
Newbie
Newbie


Joined: 19 August 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Santos L Helper Quote  Post ReplyReply Direct Link To This Post Topic: CXTPToolBar > 16-color?
    Posted: 30 September 2004 at 10:35am
I'd like to use toolbar images in a CXTPToolBar that have more than 16 colors.  Is this possible with the current CXTPToolBar?  There is no LoadBitmap() member function, and LoadToolBar() loads a toolbar resource template, which Visual Studio forces into 16-color format.

Looking over the archived messages in this forum, it appears that some people were using CXTToolBars with images greater than 16-color, but I could not find CXTToolBar anywhere in the 9.1.0 source.  Has that class been deprecated/replaced?

I'd really like to user high-color images in my CXTPToolBars.  The rest of the application looks fabulous, but the 16-color images make the toolbars ugly and look out-of-place.

Thanks for any help.


Santos

Back to Top
andy_t View Drop Down
Newbie
Newbie


Joined: 19 October 2004
Location: Norway
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote andy_t Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2004 at 10:12am

I was wondering the same thing. Is there no way around this?

cheers,
.andy

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: 20 October 2004 at 12:38pm

Just replace res/toolbar.bmp to 24bit/32bit bitmap.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Gosha View Drop Down
Newbie
Newbie
Avatar

Joined: 25 April 2005
Location: Belarus
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gosha Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2005 at 6:59am
It's don't working! Toolbar drawing with background. How I can to set background color?
Back to Top
Sven View Drop Down
Senior Member
Senior Member


Joined: 21 August 2003
Location: Germany
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sven Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2005 at 10:16am
Try XTPImageManager()->SetIcons(...).
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: 30 May 2005 at 11:15am

I think your top left color of bitmap has no transparent - background color... If so you can manually set mask color to be used:

call XTPImageManager()->SetMaskColor(RGB(...)); before loading toolbar.

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.140 seconds.