Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - How to remove text on buttons of a popup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to remove text on buttons of a popup

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: How to remove text on buttons of a popup
    Posted: 09 December 2009 at 10:46am
I want to remove all the text from all of our button controls. To do so I am walking the ribbon and setting the style to xtpButtonIcon. I do this recursively by which I mean when I see a CXTPControlPopup I get the popup's command bar controls and do the same thing for each button control that is a member of the popup.
 
But when the popup displays, it still shows the text even though the style of each button under my popups is now set to xtpButtonIcon.
 
So in addition to setting the style to xtpButtonIcon, I also tried calling SetCaption(""). That removed the text but instead of just displaying the dropdown as a row of buttons, the popup displays with a left side where I see the icon and the right-side too, although with no text.
 
How can I remove the text and/or force the popup to only display the icons on the dropdown? That is, with no text field displayed at all.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 09 December 2009 at 12:57pm

Hi,

You can call pPopupbar->SetPopupToolBar(TRUE) to make them looks like toolbars.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 09 December 2009 at 2:12pm
Thanks Oleg. Works like a charm!
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.156 seconds.