Ribbon bar - Hide caption text |
Post Reply |
Author | |
fleg
Groupie Joined: 11 July 2012 Status: Offline Points: 45 |
Post Options
Thanks(0)
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, |
|
fleg
Groupie Joined: 11 July 2012 Status: Offline Points: 45 |
Post Options
Thanks(0)
|
Hi, Any idea?
|
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
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++) |
|
fleg
Groupie Joined: 11 July 2012 Status: Offline Points: 45 |
Post Options
Thanks(0)
|
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.
|
|
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 |