[solved] Problem with ribbon bar background |
Post Reply |
Author | |
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
Posted: 19 December 2017 at 6:28am |
Hello,
We just installed the MFC Toolkit Pro version 18.2.0 and we now have a strange background in our ribbon bar used inside of a MDI child window: We would like to remove the 2 extra bands colors (black and dark gray) from the background which should be flat, as we have no tabs. We currently initialize it using the following lines of code (not in the mainframe but in the MDI child frame): m_pRibbonBar = (CXTPRibbonBar*)pChild->GetCommandBars()->Add(_T("The Ribbon"), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar)); m_pRibbonBar->EnableFrameTheme(FALSE); m_pRibbonBar->EnableDocking(0); m_pRibbonBar->ShowQuickAccess(FALSE); m_pRibbonBar->SetShowGripper(FALSE); m_pRibbonBar->ShowExpandButton(FALSE); m_pRibbonBar->SetTabsVisible(FALSE); m_pRibbonBar->ShowCaptionAlways(FALSE); m_pRibbonBar->SetOwner(pWndToReceiveButtonClickEvents); How can we have two different ribbon bars? Because the following line of code will affect all the ribbon bars, and we just want to remove the background image from the MDI document window, not both of them: XTPSetOfficeSetBackImage(pChild->GetCommandBars(), XTPNone); Please help us, thanks. Regards
|
|
Sergio
|
|
athix
Newbie Joined: 15 October 2014 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
I am having a similar issue with MDI window and quick access menu when RibbonBar.ShowCaptionAlways=FALSE. It only happens in version 18 when using office2013 and office2016 themes. |
|
fleg
Groupie Joined: 11 July 2012 Status: Offline Points: 45 |
Post Options
Thanks(0)
|
Hi,
I'm facing the same issue. Actually it seems the problem was partially fixed by updgrading to version 18.3. In version 18.2, I had something like this with version 18.3 it is better, but the top of ribbon is still darker I realized this problem happen when there is no tab in ribbon bar. When tab is visible, the color are correct. the darker gray seems to be the color used for the tab zone. This happen with Office 2015/2016 theme. Using Old Office 2007 theme, there is no such problem. I'm not expecting to have a new version 18.4, but if you can provide some code fix, so I could patch my own version, it would be great. Fabien |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello, Thank you for bringing this to our attention. I found reason of problems with using pRibbonBar->SetTabsVisible(FALSE) in file Source\Ribbon\Themes\XTPRibbonThemeOffice2013.cpp
Regards, Oleksandr Lebed
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Bugs with ShowCaptionAlways(FALSE) also have been fixed.
Fix will be available soon in v18.4 |
|
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 |