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 » How to change font in the RibbonBar buttons and top text with program name Collapse All
Subject Author Date
Andrew Banks Mar 17, 2007 - 7:31 PM

RibbonBar

Technical Support Mar 19, 2007 - 5:28 AM

Both fonts are controlled by the paint manager, and not by ribbon control. So you should create and use a custom paint manager class which implements the CExtPaintManager::Ribbon_SyncFonts() virtual method. In this method, the following members of the CExtPaintManager class should be initialized: m_FontRibbonNormal, m_FontRibbonGroupCaption and m_FontRibbonTabItem.

You can change the window caption’s font by overriding the CExtPaintManager::CreateCaptionFont() virtual method in which you can create the desired font.