Print Page | Close Window

Use 16x16 icon instead of 32x32 icon?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=16667
Printed Date: 27 September 2024 at 4:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Use 16x16 icon instead of 32x32 icon?
Posted By: znakeeye
Subject: Use 16x16 icon instead of 32x32 icon?
Date 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/



Replies:
Posted By: znakeeye
Date Posted: 06 May 2010 at 5:36pm

pControlButton->SetStyle(xtpButtonIconAndCaption);

Sigh... :P


-------------
PokerMemento - http://www.pokermemento.com/


Posted By: JantjeKeizer
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net