How to remove text on buttons of a popup |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, You can call pPopupbar->SetPopupToolBar(TRUE) to make them looks like toolbars.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
|
Thanks Oleg. Works like a charm!
|
|
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 |