Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Button icon size in ribbon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Button icon size in ribbon

 Post Reply Post Reply
Author
Message
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Topic: Button icon size in ribbon
    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?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 22 February 2007 at 10:55am
Hello,
You can call SetStyle method.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post 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!
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.031 seconds.