CXTPRibbonTab::SetColor does not work? |
Post Reply |
Author | |
radiumangel
Newbie Joined: 21 June 2010 Status: Offline Points: 2 |
Post Options
Thanks(0)
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |