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 » Main icon in 2010 themes Collapse All
Subject Author Date
Robert Webb Apr 7, 2010 - 8:51 PM

Hi,


I like the new 2010 themes.  I notice something though.  In the earlier themes, the ribbon bar had the application button, which fitted a 32x32 icon.  In the 2010 themes, this larger 32x32 icon is still used although now the application button is only half the height, so the larger icon extends over the top and is truncated at the bottom.  Shouldn’t it use the 16x16 icon (our icon has both sizes)?


Thanks,


Rob.

Technical Support Apr 8, 2010 - 12:17 PM

This issue is fixed in the latest Prof-UIS 2.89 source code. You can re-download it. Thank you.

Technical Support Apr 8, 2010 - 12:17 PM

You can see the code lines like these in the CMainFrame::_InitRibbonBar() and CMainFrame::NcFrameImpl_SyncThemeSettings() methods in the RibbonBar sample application:

bool bSmallFileButtonIcon = g_PaintManager->Ribbon_IsSystemMenuIconPresent() ? true : false;
LPCTSTR strFileButtonIconResID = bSmallFileButtonIcon ? (MAKEINTRESOURCE(IDB_BITMAP_UI_LOGO_ICON)) : (MAKEINTRESOURCE(IDB_BITMAP_SMALL_ICON));
            VERIFY( m_wndRibbonBar.Ribbon_FileButtonGet() -> m_iconForLargeMode.m_bmpNormal.LoadBMP_Resource( strFileButtonIconResID ) );
The CMainFrame::_InitRibbonBar() method initializes the ribbon bar. The CMainFrame::NcFrameImpl_SyncThemeSettings() method is invoked when the paint manager changes. I.e. the ribbon bar does not re-initialize its file button icon and even doesn’t know whether the small or large icon should be used. You can see how the big/small icon changes in the RibbonBar sample application. So it is done in the application rather than in the ribbon itself.

Robert Webb Apr 8, 2010 - 9:42 PM

Thanks, all fixed :-)


Rob.

Robert Webb Apr 8, 2010 - 12:19 AM

Also, with the new 2010 black theme, an old problem is back.  I reported once before that when using the old black theme, text labels used in the ribbon’s right-button area (top right) are drawn in black, which don’t show up well.  Same problem now appears for the new black theme.  The right-button labels should be drawn using the same colour as the text on a non-current ribbon tab.


Rob.

Robert Webb Apr 8, 2010 - 12:10 AM

By the way, I’m not talking about the far top-left corner, where the small version of the icon is indeed used.  This gives a Windows menu.  I mean the wider button below it, in line with the ribbon tabs, which opens the same menu as the larger top-left button in earlier themes.  The wider button seems to reuse the icon used for the far top left button, but at 32x32 rather than 16x16.


Thanks,


Rob.