Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPRibbonTab::SetColor does not work?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPRibbonTab::SetColor does not work?

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


Joined: 21 June 2010
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote radiumangel Quote  Post ReplyReply Direct Link To This Post Topic: CXTPRibbonTab::SetColor does not work?
    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.
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: 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
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.266 seconds.