Print Page | Close Window

CXTPToolBar > 16-color?

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=1219
Printed Date: 06 October 2024 at 1:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPToolBar > 16-color?
Posted By: Santos L Helper
Subject: CXTPToolBar > 16-color?
Date 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




Replies:
Posted By: andy_t
Date Posted: 19 October 2004 at 10:12am

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

cheers,
.andy



Posted By: Oleg
Date Posted: 20 October 2004 at 12:38pm

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



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Gosha
Date Posted: 30 May 2005 at 6:59am
It's don't working! Toolbar drawing with background. How I can to set background color?


Posted By: Sven
Date Posted: 30 May 2005 at 10:16am
Try XTPImageManager()->SetIcons(...).


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



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