Print Page | Close Window

CXTPRibbonTab::SetColor does not work?

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=17795
Printed Date: 01 May 2025 at 7:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPRibbonTab::SetColor does not work?
Posted By: radiumangel
Subject: CXTPRibbonTab::SetColor does not work?
Date Posted: 19 January 2011 at 5:55am
is this a known issue or am i doing anything wrong?

all i do is

COLORREF col = RGB(255,0,0);
pRibbonTab->SetColor(col);

but nothing happens.
i also called GetColor() before and after setting the color. when it is called the first time GetColor() returns 0x000000ff after setting it and something else before (some gray value). after the first call it returns 0x000000ff before setting the new color again, just as expected. i also called RedrawControl() but that doesn't change a thing.

using v13.4 of XTP.

hope anyone can help.



Replies:
Posted By: Oleg
Date Posted: 25 January 2011 at 7:31am
Hello,

You can only use standard colors from Office - 
pRibbonBar->SetContextColor 
and

xtpRibbonTabContextColorNone,           // Default color
xtpRibbonTabContextColorBlue,           // Blue context color
xtpRibbonTabContextColorYellow,         // Yellow context color
xtpRibbonTabContextColorGreen,          // Green context color
xtpRibbonTabContextColorRed,            // Red context color
xtpRibbonTabContextColorPurple,         // Purple context color
xtpRibbonTabContextColorCyan,           // Cyan context color
xtpRibbonTabContextColorOrange          // Orange context color



-------------
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