Professional UI Solutions
Site Map   /  Register


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 » CExtRibbonNode question Collapse All
Subject Author Date
tera tera Jun 28, 2009 - 7:33 PM


The selection view area of the bmpmap is different from string.

The selection area of bmp is 22*22.

The selection area of the string is 24*24.

I want to make a bmp selection area the same as a character selection area.

In addition, the reason why selection areas are different?

Technical Support Jul 1, 2009 - 7:42 AM

Please take a look at the CExtRibbonPage::OnGetToolbarFont() virtual method. It’s an overridden version of the CExtToolControlBar::OnGetToolbarFont() virtual method. The ribbon bars use the CExtPaintManager::m_FontRibbonNormal font. So, you can simply change this font.

tera tera Jul 2, 2009 - 1:43 AM

If there is a method else, please teach it.

( I do not change a font size......... )


Technical Support Jul 2, 2009 - 11:58 AM

There are two methods and we described them. One is overriding the CExtRibbonPage::OnGetToolbarFont() virtual method. Second is changing the CExtPaintManager::m_FontRibbonNormal property. Both are enough easy.

Technical Support Jun 30, 2009 - 6:05 AM

The width of text cannon be compared with the width of a bitmap. The height of text looks like a problem which is specific to the default GUI font used on your desktop. Which font is used in the string button?

tera tera Jun 30, 2009 - 6:34 PM

If I change a GUI font

Can I make the dot size of the selection agree?


Where do I appoint the default font of the ribbon?