[solved] v18.3 missing Ribbon group separators |
Post Reply |
Author | |
SvenC
Groupie Joined: 02 February 2007 Status: Offline Points: 79 |
Post Options
Thanks(1)
Posted: 06 February 2018 at 7:32am |
Tried that and I see missing Ribbon group separators for Office 2013 and 2016 themes.
I can repro that in you Ribbon sample project as well. Have a look at the 2016 theme on top and 2010 theme at the bottom: |
|
--
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 |
|
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. As quick workaround you can delete new method CXTPRibbonOffice2013Theme::DrawGroup to will be used base method CXTPRibbonMarkupTheme::DrawGroup(). Or add calling base method in CXTPRibbonOffice2013Theme::DrawGroup instead all other code. Regards, Oleksandr Lebed |
|
agontarenko
Admin Group Joined: 25 March 2016 Status: Offline Points: 289 |
Post Options
Thanks(0)
|
Hello,
To fix it you should be remove method: void CXTPRibbonOffice2013Theme::DrawGroup(CDC* pDC, CXTPRibbonGroup* pGroup) also change method void CXTPRibbonMarkupTheme::DrawGroup(CDC *pDC, CXTPRibbonGroup *pGroup) as shown below: void CXTPRibbonMarkupTheme::DrawGroup(CDC *pDC, CXTPRibbonGroup *pGroup) { ASSERT(pDC); ASSERT(pGroup); CRect rcGroup(pGroup->GetRect()); if (!pGroup->IsReduced()) { CString strCaption = pGroup->GetCaption(); XTPDrawHelpers()->StripMnemonics(strCaption); LOGFONT lf; //ADDED m_fontGroupCaption.GetLogFont(&lf); //ADDED if (pGroup->IsHighlighted()) { ASSERT(NULL != m_pGroupHighlighted); m_pGroupHighlighted->SetFontSize(-lf.lfHeight); //ADDED m_pGroupHighlighted->SetCaption(strCaption); m_pGroupHighlighted->SetTextColor(m_clrGroupCaption); m_pGroupHighlighted->RenderMarkup(pDC, rcGroup); } else { ASSERT(NULL != m_pGroupNormal); m_pGroupNormal->SetFontSize(-lf.lfHeight); //ADDED m_pGroupNormal->SetCaption(strCaption); m_pGroupNormal->SetTextColor(m_clrGroupCaption); m_pGroupNormal->RenderMarkup(pDC, rcGroup); } } } Regards, Gontarenko Artem |
|
Daeva
Newbie Joined: 04 November 2016 Location: Belarus Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hello. In older versions between ribbon groups was a separators. (style office 2013) Now they're gone. Is it possible to return them back?
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
yes
|
|
Daeva
Newbie Joined: 04 November 2016 Location: Belarus Status: Offline Points: 8 |
Post Options
Thanks(0)
|
When do you plan to release the patch with this fix?
|
|
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 |