Print Page | Close Window

Button icon size in ribbon

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6486
Printed Date: 12 November 2025 at 7:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Button icon size in ribbon
Posted By: robin_l
Subject: Button icon size in ribbon
Date Posted: 22 February 2007 at 6:47am

Is there any way to control programmatically whether a ribbon button uses a 32 pixel icon or a 16 pixel one? I’d like to load both 32 and 16 pixel versions of all icons that I display (so that the tooltips use the large sizes and look consistent), but for aesthetic reasons force the ribbon to use the smaller icons for some commands.

 
Any chance of adding a flag that fixes the icon height rather than letting the ribbon decide for itself?



Replies:
Posted By: Oleg
Date Posted: 22 February 2007 at 10:55am
Hello,
You can call SetStyle method.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: robin_l
Date Posted: 22 February 2007 at 11:15am
Many thanks! SetStyle(xtpButtonIconAndCaption) does the trick. However, it is not obvious from the documentation that this would work--the big icons have captions too!



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