Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon bar - Hide caption text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon bar - Hide caption text

 Post Reply Post Reply
Author
Message
fleg View Drop Down
Groupie
Groupie


Joined: 11 July 2012
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote fleg Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon bar - Hide caption text
    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,

Back to Top
fleg View Drop Down
Groupie
Groupie


Joined: 11 July 2012
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote fleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 June 2024 at 8:51am
Hi,
Any idea?
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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++)
Back to Top
fleg View Drop Down
Groupie
Groupie


Joined: 11 July 2012
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote fleg Quote  Post ReplyReply Direct Link To This Post 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.
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.189 seconds.