Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon Theme only showing small icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon Theme only showing small icons

 Post Reply Post Reply
Author
Message
larryp View Drop Down
Groupie
Groupie


Joined: 15 January 2005
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote larryp Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon Theme only showing small icons
    Posted: 02 January 2007 at 12:42am
Just upgraded to 10.4 from 10.3.1 and had a couple problems when using the ribbon theme.
 
I had to add "Ribbon\Styles\Office2007Blue\Office2007Blue.rc" to my resource includes to get the theme to work, but now I have a problem with the ribbon theme only showing small icons on the toolbars and menus. 
 
When I rotate through all of my themes, they all show large icons except for the ribbon them.  I change the theme with a call to CXTPPaintManager::SetTheme(theme);
 
Any ideas?
 
Larry
Back to Top
artsd View Drop Down
Groupie
Groupie


Joined: 07 January 2007
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote artsd Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2007 at 12:00am
Can't help you but I can confirm the same problem with my program and even with the RibbonSample. I am new to the toolkit so don't about pre 10.4 version.
 
To prove problem:
1) run RibbonSample and create a toolbar
2) add Edit-Paste command to a toolbar
3) enable Large icons on the Options tab of the Customize dialog
4) the toolbar will grow in size but it still uses the small icon
 
I verified that the SMALL and LARGE toolbar resource and PNG files are correct and they appear to be.
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2007 at 1:19am
Hello,
 
Yes, we added option
pCommandBars->GetPaintManager()->m_bAutoResizeIcons = FALSE;
 
think for 10.4.1 it will be FALSE for RibbonTheme also by default.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
artsd View Drop Down
Groupie
Groupie


Joined: 07 January 2007
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote artsd Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2007 at 1:28am

Your solution does fix the problem of not using the large icons in the toolbar but, in my case, it also made the quick access icons and the Help About icon grow in size instead of using the correct small icons.

Is there any way to make the toolbars use large icons but make the quick access area use the small icons?
 
I guess a work-around would be to give different IDs to the large and small icons/toolbar values but that seems kludgey.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.