|  | 
| Use 16x16 icon instead of 32x32 icon? | 
| Post Reply   | 
| Author | |
| znakeeye   Senior Member     Joined: 26 July 2006 Status: Offline Points: 1672 |  Post Options  Thanks(0)  Quote  Reply  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/
     | |
|  | |
| znakeeye   Senior Member     Joined: 26 July 2006 Status: Offline Points: 1672 |  Post Options  Thanks(0)  Quote  Reply  Posted: 06 May 2010 at 5:36pm | 
| pControlButton->SetStyle(xtpButtonIconAndCaption); Sigh... :P | |
| 
     PokerMemento - http://www.pokermemento.com/
     | |
|  | |
| JantjeKeizer   Groupie   Joined: 12 February 2008 Status: Offline Points: 70 |  Post Options  Thanks(0)  Quote  Reply  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. | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |