Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [solved] v17 (final) Invisible Backstage Text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] v17 (final) Invisible Backstage Text

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


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: [solved] v17 (final) Invisible Backstage Text
    Posted: 12 January 2016 at 3:45am
The File menu in the Ribbon Backstage view is not highlighted and invisible.

Running the Ribbon Sample and select the File menu will show something like this:


- cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2016 at 11:48am
Hello cpede, 

Thank you for bringing this to our attention. I'm glad to inform you that the issue has been fixed.

Regards,
 Oleksandr Lebed
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2016 at 5:30am
Just to be clear, I also see this in my own Office2013 themed application.

-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2016 at 5:53am
Hi, try to use this
void CMainFrame::SetBackstageTheme()
{
XTPPaintTheme nPaintTheme = GetCommandBars()->GetPaintManager()->GetCurrentTheme();
 
CXTPRibbonBar *pRibbonBar = (CXTPRibbonBar*)GetCommandBars()->GetMenuBar();
CXTPRibbonBackstageView *pView = DYNAMIC_DOWNCAST(CXTPRibbonBackstageView, pRibbonBar->GetSystemButton()->GetCommandBar());

if (pView)
pView->SetTheme(nPaintTheme);
....
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2016 at 6:39am
OK, now it does something.

But when I select Office2013Excel as ribbon theme, I would expect the background to be green and not blue. It seems that the ribbon backstage Office2013 theme is always blue, how do I get it to follow the Office2013Excel ribbon theme?

And the same for the backstage buttons. I can set the xtpControlThemeOffice2013 theme, but it does not follow the green Office2013Excel ribbon theme.

My problem is, I can alter the CodeJock code to create the themes and look I want, but if you are already working on fixing these issues I have better thing to do. I need some feedback telling me when things like this will be fixed. Also see my post http://forum.codejock.com/forum_posts.asp?TID=22842.

-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2016 at 7:40am
OK, taking back the part with the backstage buttons. Looking at the ribbon sample the backstage is repeatably created when the theme is changed. This makes the the CXTPButton use the resources from the paint manager at creation.

But the problem still exist for the background of the ribbon File menu.

-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2016 at 7:46am
I see that issue fixed just for Office2013 Word theme. But  VisualStudio2015 , Excel2013, Access2013 and other 2013 themes are not implemented for Ribbon's Backstage. We are working on this.
Originally posted by kstowell kstowell wrote:

This problem has been corrected and will be fixed with the next update.  Should have the update ready by the end of January.
 
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2016 at 8:44am
Well just replace the hardcoded values:

COLORREF m_clrNormal   = RGB(43, 87, 154);
COLORREF m_clrSelected = RGB(62, 109, 181);
COLORREF m_clrHighlighted = RGB(25, 71, 138);

to something like this:

COLORREF clrNormal   = XTPIniColor(_T("CommandBars.Ribbon"),_T("TabTextSelected"),RGB(255,0,0));
COLORREF clrSelected = XTPIniColor(_T("CommandBars.Ribbon"),_T("ButtonBackChecked"),RGB(159, 213, 183));
COLORREF clrHighlighted = XTPIniColor(_T("CommandBars.Ribbon"),_T("ButtonBackCheckedHighlight"),RGB(211, 240, 224));

in the CXTPRibbonBackstageViewThemeOffice2013 class.

-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2016 at 3:08pm
Hello, 

I'm glad to inform you that the issue has been fixed.

Additional Office2013 themes and VisualStudio2015  added to Backstage. Also MFC, VB and C# samples are updated.

Regards,
Oleksandr Lebed
Back to Top
SvenC View Drop Down
Groupie
Groupie


Joined: 02 February 2007
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote SvenC Quote  Post ReplyReply Direct Link To This Post Posted: 09 February 2016 at 3:44am
Any plans when the fixes are going to be released?
--
SvenC

Toolkit Pro 15.3.1, 16.2.4, 16.3.1, 16.4.0, 17.2.0, 17.3.0, 18.0.1, 18.2 with VC++ 2010, 2012, 2013, 2015, 2017
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 09 February 2016 at 4:39am
Will full screen backstages be supported?

-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
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.219 seconds.