Print Page | Close Window

Ribbon bar - Hide caption text

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=24484
Printed Date: 21 November 2024 at 6:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon bar - Hide caption text
Posted By: fleg
Subject: Ribbon bar - Hide caption text
Date Posted: 17 June 2024 at 4:31am
Hi,
I want to introduce an option to let user hide caption text from ribbon button, showing icons only.
My purpose is to do this without changing the style of each button as if button style is set to xtpButtonIcon but actually keep it to xtpButtonIconAndCaption.

I was not able to find a property on CXTPRibbonPaintManager or CXTPRibbon to do that (nor CXTPButtonTheme)

What would be the best method to achieve this, any sample code existing for this?

Thanks,




Replies:
Posted By: fleg
Date Posted: 28 June 2024 at 8:51am
Hi,
Any idea?


Posted By: cpede
Date Posted: 02 July 2024 at 2:36am
I understand what you want, but writing code changing all the styles for the Ribbon controls would not be a big deal, would it?
I do a recreation of my Ribbon bar controls when I change the Theme since some of the icons images need to look white in black theme and vice versa. Adding a flag to hide or change the caption style would be easy. 
Or run through enumerating all command bar controls and change styles on the fly would also be another solution.


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: fleg
Date Posted: 17 July 2024 at 4:07am
thanks for suggestion.
It was more or less what I was considering, but was hoping I just missed a magical option to achieve this easily.



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