Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Ribbon group font? Collapse All
Subject Author Date
Robert Webb Mar 15, 2010 - 8:56 PM

How do I change the font (or actually just the size of the font) used in the ribbon group label?


Thanks,


Rob.

Technical Support Mar 17, 2010 - 2:28 AM

The font returned by the CExtRibbonPage::OnGetToolbarFont() virtual method is used for painting ribbon group captions. Unfortunately, this method does not have a parameter identifying who is asking for the font. So, we can regard your question as a feature request. We added a new parameter CObject * pQuerySrc to the following virtual methods:

CFont * CExtRibbonPage::OnGetToolbarFont(
            bool bVert,
            bool bMeasureFont,
            CObject * pQuerySrc
            )

CFont * CExtToolControlBar::OnGetToolbarFont(
            bool bVert,
            bool bMeasureFont,
            CObject * pQuerySrc
            )
It’s a pointer to the CExtRibbonButtonGroup object when the caption font for the ribbon button groups should be returned.
Please drop us an e-mail to the support mail box so we will provide you with the source code update.