![]() |
Black ribbon style, text color glitch |
Post Reply
|
| Author | |
robin_l
Senior Member
Joined: 15 October 2006 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Topic: Black ribbon style, text color glitchPosted: 20 September 2007 at 6:02pm |
|
The RibbonSample application shows how to use a number of different ribbon color styles. If this code is used in conjunction with a CXTPTabClientWnd to create workspace tabs (as is done in the RibbonMDISample application), the resulting tabs seem to use incorrect text colors for selected tabs when using the black ribbon style.
The default color is shown below. Workspace tabs and ribbon tabs use the same text colors, all is well. ![]() When the black ribbon color is used, however, the selected workspace tab has a different text color (white) to that of a selected ribbon tab. The colors used mean that it is extremely difficult to read the caption. ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 September 2007 at 12:47am |
|
Hi,
Think it was fixed already. I see right color. Update your toolkit.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
robin_l
Senior Member
Joined: 15 October 2006 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 September 2007 at 2:48am |
|
I'm using 11.2.0
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 September 2007 at 10:02am |
|
Hi,
May be you use dll from previous version...
I tried in our MDISample this code:
void CMainFrame::OnViewFullscreen()
{ LPCTSTR lpszIniFile = _T("OFFICE2007BLACK.INI"); HMODULE hModule = AfxGetInstanceHandle(); XTPOffice2007Images()->SetHandle(hModule, lpszIniFile); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
m_wndClient.GetPaintManager()->RefreshMetrics(); GetCommandBars()->GetImageManager()->RefreshAll();
GetCommandBars()->RedrawCommandBars(); SendMessage(WM_NCPAINT); RedrawWindow(0, 0, RDW_ALLCHILDREN|RDW_INVALIDATE);
} |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
robin_l
Senior Member
Joined: 15 October 2006 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 September 2007 at 4:53pm |
|
Hi Oleg,
Found it! The problem only happens when you have a close button on the tab. Add the following to the OnCreate call:
You will then see the colour glitch as below
|
|
![]() |
|
robin_l
Senior Member
Joined: 15 October 2006 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 October 2007 at 5:06pm |
|
Any chance of fixing this for the next release?
Thanks....
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 October 2007 at 4:59am |
|
Hello,
Yes, thanks, its fixed for 11.2.1 release.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
robin_l
Senior Member
Joined: 15 October 2006 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 October 2007 at 6:57pm |
|
You are a star, as always!
|
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 October 2007 at 11:41am |
|
Cool, is there an approx release date for 11.2.1
Cheers
|
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
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 |