Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Use 16x16 icon instead of 32x32 icon?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Use 16x16 icon instead of 32x32 icon?

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Use 16x16 icon instead of 32x32 icon?
    Posted: 06 May 2010 at 5:29pm

CXTPControlButton *pControlButton = (CXTPControlButton*)pControls->Add(xtpControlButton, ID_CONTROL);

ID_CONTROL has both a 16x16 and a 32x32 icon. The ribbon keeps using the large ones and in this case I want to use the small one for the control (and the big one for the tooltip).
 
How do I tell the ribbon to prioritize small icons?
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2010 at 5:36pm

pControlButton->SetStyle(xtpButtonIconAndCaption);

Sigh... :P
PokerMemento - http://www.pokermemento.com/
Back to Top
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2010 at 2:52am
In ActiveX commandbars and ribbons there's a property called SetIconSize. There are 2 groups: largeicons and small icons, specified by a boolean flag.
SetIconSize True, 32, 32 //sets the size of largeicons
SetIconSize False, 16, 16 //sets the size of smallicons
Then finally there's a property called LargeIcons which you can set to True or False to prioritize the default iconsize.

I can imagine the Toolkit works alike.
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.160 seconds.