Print Page | Close Window

[solved] v18.3 missing Ribbon group separators

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23562
Printed Date: 21 November 2024 at 5:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] v18.3 missing Ribbon group separators
Posted By: SvenC
Subject: [solved] v18.3 missing Ribbon group separators
Date 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



Replies:
Posted By: olebed
Date Posted: 06 February 2018 at 8:30am
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


Posted By: agontarenko
Date Posted: 07 February 2018 at 10:42am
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


Posted By: Daeva
Date Posted: 19 April 2018 at 10:33am
Hello.
In older versions between ribbon groups was a separators. (style office 2013) Now they're gone. Is it possible to return them back?


Posted By: olebed
Date Posted: 19 April 2018 at 3:05pm
yes


Posted By: Daeva
Date Posted: 20 April 2018 at 4:51am
When do you plan to release the patch with this fix?



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