Print Page | Close Window

[solved] v17 (final) Invisible Backstage Text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22840
Printed Date: 24 December 2024 at 1:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] v17 (final) Invisible Backstage Text
Posted By: cpede
Subject: [solved] v17 (final) Invisible Backstage Text
Date 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++)



Replies:
Posted By: olebed
Date 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


Posted By: cpede
Date 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++)


Posted By: olebed
Date 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);
....


Posted By: cpede
Date 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" rel="nofollow - 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++)


Posted By: cpede
Date 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++)


Posted By: olebed
Date 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.
 


Posted By: cpede
Date 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++)


Posted By: olebed
Date 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


Posted By: SvenC
Date 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


Posted By: cpede
Date 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++)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net