Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Black ribbon style, text color glitch
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Black ribbon style, text color glitch

 Post Reply Post Reply
Author
Message
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Topic: Black ribbon style, text color glitch
    Posted: 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2007 at 2:48am
I'm using 11.2.0
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post 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:
 
m_wndClient.SetFlags(xtpWorkspaceHideClose | xtpWorkspaceHideArrows | xtpWorkspaceShowCloseSelectedTab | xtpWorkspaceShowActiveFiles);

You will then see the colour glitch as below

Back to Top
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2007 at 5:06pm
Any chance of fixing this for the next release?
 
Thanks....
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 18 October 2007 at 4:59am
Hello,
 
Yes, thanks, its fixed for 11.2.1 release.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2007 at 6:57pm
You are a star, as always!
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
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.046 seconds.